File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
26
26
27
27
### Deprecated
28
28
29
+ - Passing a ` Rule ` to ` RuleSet::getRules() ` or ` getRulesAssoc() ` is deprecated,
30
+ affecting the implementing classes ` AtRuleSet ` and ` DeclarationBlock `
31
+ (call e.g. ` getRules($rule->getRule()) ` instead) (#1248 )
29
32
- Passing a string as the first argument to ` getAllValues() ` is deprecated;
30
33
the search pattern should now be passed as the second argument (#1241 )
31
34
- 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