File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Please also have a look at our
1818
1919### Changed
2020
21- - ` Rule\Rule ` class is renamed to ` Property\Declaration ` (#1508 )
21+ - ` Rule\Rule ` class is renamed to ` Property\Declaration ` (#1508 , # 1512 )
2222- ` Rule::setRule() ` and ` getRule() ` are replaced with ` setPropertyName() ` and
2323 ` getPropertyName() ` (#1506 )
2424- ` Selector ` is now represented as a sequence of ` Selector\Component ` objects
Original file line number Diff line number Diff line change 55namespace Sabberworm \CSS \CSSList ;
66
77use Sabberworm \CSS \CSSElement ;
8+ use Sabberworm \CSS \Property \Declaration ;
89use Sabberworm \CSS \Property \Selector ;
9- use Sabberworm \CSS \Rule \Rule ;
1010use Sabberworm \CSS \RuleSet \DeclarationBlock ;
1111use Sabberworm \CSS \RuleSet \RuleContainer ;
1212use Sabberworm \CSS \RuleSet \RuleSet ;
@@ -65,7 +65,7 @@ public function getAllRuleSets(): array
6565 }
6666
6767 /**
68- * Returns all `Value` objects found recursively in `Rule `s in the tree.
68+ * Returns all `Value` objects found recursively in `Declaration `s in the tree.
6969 *
7070 * @param CSSElement|null $element
7171 * This is the `CSSList` or `RuleSet` to start the search from (defaults to the whole document).
@@ -105,7 +105,7 @@ public function getAllValues(
105105 $ this ->getAllValues ($ rule , $ ruleSearchPattern , $ searchInFunctionArguments )
106106 );
107107 }
108- } elseif ($ element instanceof Rule ) {
108+ } elseif ($ element instanceof Declaration ) {
109109 $ value = $ element ->getValue ();
110110 // `string` values are discarded.
111111 if ($ value instanceof CSSElement) {
You can’t perform that action at this time.
0 commit comments