File tree Expand file tree Collapse file tree 3 files changed +2
-33
lines changed Expand file tree Collapse file tree 3 files changed +2
-33
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
22
22
23
23
### Removed
24
24
25
+ - Remove ` Rule::getValues() ` (#582 )
25
26
- Remove ` Rule::setValues() ` (#562 )
26
27
- Remove ` Document::getAllSelectors() ` (#561 )
27
28
- Remove ` DeclarationBlock::getSelector() ` (#559 )
Original file line number Diff line number Diff line change @@ -189,37 +189,6 @@ public function setValue($mValue)
189
189
$ this ->mValue = $ mValue ;
190
190
}
191
191
192
- /**
193
- * @return array<int, array<int, RuleValueList>>
194
- *
195
- * @deprecated will be removed in version 9.0
196
- * Old-Style 2-dimensional array returned. Retained for (some) backwards-compatibility.
197
- * Use `getValue()` instead and check for the existence of a (nested set of) ValueList object(s).
198
- */
199
- public function getValues (): array
200
- {
201
- if (!$ this ->mValue instanceof RuleValueList) {
202
- return [[$ this ->mValue ]];
203
- }
204
- if ($ this ->mValue ->getListSeparator () === ', ' ) {
205
- return [$ this ->mValue ->getListComponents ()];
206
- }
207
- $ aResult = [];
208
- foreach ($ this ->mValue ->getListComponents () as $ mValue ) {
209
- if (!$ mValue instanceof RuleValueList || $ mValue ->getListSeparator () !== ', ' ) {
210
- $ aResult [] = [$ mValue ];
211
- continue ;
212
- }
213
- if ($ this ->mValue ->getListSeparator () === ' ' || count ($ aResult ) === 0 ) {
214
- $ aResult [] = [];
215
- }
216
- foreach ($ mValue ->getListComponents () as $ mValue ) {
217
- $ aResult [count ($ aResult ) - 1 ][] = $ mValue ;
218
- }
219
- }
220
- return $ aResult ;
221
- }
222
-
223
192
/**
224
193
* Adds a value to the existing value. Value will be appended if a `RuleValueList` exists of the given type.
225
194
* Otherwise, the existing value will be wrapped by one.
Original file line number Diff line number Diff line change @@ -182,8 +182,7 @@ public function unicodeParsing(): void
182
182
continue ;
183
183
}
184
184
$ aContentRules = $ oRuleSet ->getRules ('content ' );
185
- $ aContents = $ aContentRules [0 ]->getValues ();
186
- $ sString = $ aContents [0 ][0 ]->__toString ();
185
+ $ sString = $ aContentRules [0 ]->getValue ()->__toString ();
187
186
if ($ sSelector == '.test-1 ' ) {
188
187
self ::assertSame ('" " ' , $ sString );
189
188
}
You can’t perform that action at this time.
0 commit comments