Skip to content

Commit 0cfbce3

Browse files
authored
[CLEANUP] Avoid magic method forwarding in CalcRuleValueList (#1157)
Part of #1147
1 parent 159f7be commit 0cfbce3

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

config/phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,6 @@ parameters:
240240
count: 3
241241
path: ../src/Value/CalcFunction.php
242242

243-
-
244-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:implode\(\)\.$#'
245-
identifier: method.notFound
246-
count: 1
247-
path: ../src/Value/CalcRuleValueList.php
248-
249243
-
250244
message: '#^Call to method Sabberworm\\CSS\\Value\\Color\:\:hasNoneAsComponentValue\(\) with incorrect case\: HasNoneAsComponentValue$#'
251245
identifier: method.nameCase

src/Value/CalcRuleValueList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public function __construct(int $lineNumber = 0)
1818

1919
public function render(OutputFormat $outputFormat): string
2020
{
21-
return $outputFormat->implode(' ', $this->components);
21+
return $outputFormat->getFormatter()->implode(' ', $this->components);
2222
}
2323
}

0 commit comments

Comments
 (0)