Skip to content

Commit 8d66357

Browse files
authored
[CLEANUP] Avoid magic method forwarding in Charset (#1160)
Part of #1147
1 parent fdd1a65 commit 8d66357

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
@@ -66,12 +66,6 @@ parameters:
6666
count: 1
6767
path: ../src/Property/CSSNamespace.php
6868

69-
-
70-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
71-
identifier: method.notFound
72-
count: 1
73-
path: ../src/Property/Charset.php
74-
7569
-
7670
message: '#^Method Sabberworm\\CSS\\Property\\Charset\:\:atRuleArgs\(\) should return string but returns Sabberworm\\CSS\\Value\\CSSString\.$#'
7771
identifier: return.type

src/Property/Charset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __toString(): string
8181

8282
public function render(OutputFormat $outputFormat): string
8383
{
84-
return "{$outputFormat->comments($this)}@charset {$this->charset->render($outputFormat)};";
84+
return "{$outputFormat->getFormatter()->comments($this)}@charset {$this->charset->render($outputFormat)};";
8585
}
8686

8787
/**

0 commit comments

Comments
 (0)