Replies: 1 comment 11 replies
-
@sabberworm, @oliverklee, your input and/or agreement would be welcome, particularly regarding |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Several
RuleSet
methods currently accept astring
or aRule
(ornull
):getRules
;getRulesAssoc
;removeRule
.For static analysis, it would be good to avoid this overloading.
getRules
From the PHPDoc:
Does this shortcut have much value, or could we deprecate passing a
Rule
without offering an alternative?getRulesAssoc
From the PHPDoc:
Can we deprecate and remove it?
removeRule
This method seems to provide two distinct functions, depending on whether a
string
or aRule
is passed. I think we should create a separate method for one or the other, with the alternative parameter being deprecated in the original.Question is, which alternative parameter should be deprecated (and moved to the new method)?
I think the most common usage of the original method should be retained. But I don't know what that is...
Beta Was this translation helpful? Give feedback.
All reactions