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 @@ -144,18 +144,6 @@ parameters:
144
144
count : 1
145
145
path : ../src/Property/Import.php
146
146
147
- -
148
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
149
- identifier : method.notFound
150
- count : 1
151
- path : ../src/Rule/Rule.php
152
-
153
- -
154
- message : ' #^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:spaceAfterRuleName\(\)\.$#'
155
- identifier : method.notFound
156
- count : 1
157
- path : ../src/Rule/Rule.php
158
-
159
147
-
160
148
message : ' #^Only booleans are allowed in an if condition, Sabberworm\\CSS\\Value\\RuleValueList\|string\|null given\.$#'
161
149
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