File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
33
33
- Passing a ` string ` or ` null ` to ` RuleSet::removeRule() ` is deprecated
34
34
(implementing classes are ` AtRuleSet ` and ` DeclarationBlock ` );
35
35
use ` removeMatchingRules() ` or ` removeAllRules() ` instead (#1249 )
36
+ - Passing a ` Rule ` to ` RuleSet::getRules() ` or ` getRulesAssoc() ` is deprecated,
37
+ affecting the implementing classes ` AtRuleSet ` and ` DeclarationBlock `
38
+ (call e.g. ` getRules($rule->getRule()) ` instead) (#1248 )
36
39
- Passing a string as the first argument to ` getAllValues() ` is deprecated;
37
40
the search pattern should now be passed as the second argument (#1241 )
38
41
- Passing a Boolean as the second argument to ` getAllValues() ` is deprecated;
Original file line number Diff line number Diff line change @@ -146,7 +146,8 @@ public function addRule(Rule $oRule, $oSibling = null)
146
146
* Pattern to search for. If null, returns all rules.
147
147
* If the pattern ends with a dash, all rules starting with the pattern are returned
148
148
* as well as one matching the pattern with the dash excluded.
149
- * Passing a Rule behaves like calling `getRules($mRule->getRule())`.
149
+ * Passing a `Rule` for this parameter is deprecated in version 8.9.0, and will not work from v9.0.
150
+ * Call `getRules($rule->getRule())` instead.
150
151
*
151
152
* @return array<int, Rule>
152
153
*/
@@ -205,7 +206,9 @@ public function setRules(array $aRules)
205
206
* @param Rule|string|null $mRule $mRule
206
207
* Pattern to search for. If null, returns all rules. If the pattern ends with a dash,
207
208
* all rules starting with the pattern are returned as well as one matching the pattern with the dash
208
- * excluded. Passing a Rule behaves like calling `getRules($mRule->getRule())`.
209
+ * excluded.
210
+ * Passing a `Rule` for this parameter is deprecated in version 8.9.0, and will not work from v9.0.
211
+ * Call `getRulesAssoc($rule->getRule())` instead.
209
212
*
210
213
* @return array<string, Rule>
211
214
*/
You can’t perform that action at this time.
0 commit comments