File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -156,18 +156,6 @@ parameters:
156
156
count : 1
157
157
path : ../src/Property/Import.php
158
158
159
- -
160
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
161
- identifier : method.notFound
162
- count : 1
163
- path : ../src/Rule/Rule.php
164
-
165
- -
166
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceAfterRuleName\(\)\.$#'
167
- identifier : method.notFound
168
- count : 1
169
- path : ../src/Rule/Rule.php
170
-
171
159
-
172
160
message : ' #^Only booleans are allowed in an if condition, Sabberworm\\CSS\\Value\\RuleValueList\|string\|null given\.$#'
173
161
identifier : if.condNotBoolean
Original file line number Diff line number Diff line change @@ -234,7 +234,8 @@ public function __toString(): string
234
234
235
235
public function render (OutputFormat $ outputFormat ): string
236
236
{
237
- $ result = "{$ outputFormat ->comments ($ this )}{$ this ->rule }: {$ outputFormat ->spaceAfterRuleName ()}" ;
237
+ $ formatter = $ outputFormat ->getFormatter ();
238
+ $ result = "{$ formatter ->comments ($ this )}{$ this ->rule }: {$ formatter ->spaceAfterRuleName ()}" ;
238
239
if ($ this ->value instanceof Value) { // Can also be a ValueList
239
240
$ result .= $ this ->value ->render ($ outputFormat );
240
241
} else {
You can’t perform that action at this time.
0 commit comments