Skip to content

Commit 159f7be

Browse files
authored
[CLEANUP] Avoid magic method forwarding in Import (#1156)
Part of #1147
1 parent 7144fde commit 159f7be

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
@@ -90,12 +90,6 @@ parameters:
9090
count: 1
9191
path: ../src/Property/Charset.php
9292

93-
-
94-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
95-
identifier: method.notFound
96-
count: 1
97-
path: ../src/Property/Import.php
98-
9993
-
10094
message: '#^Only booleans are allowed in an if condition, string given\.$#'
10195
identifier: if.condNotBoolean

src/Property/Import.php

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

8383
public function render(OutputFormat $outputFormat): string
8484
{
85-
return $outputFormat->comments($this) . '@import ' . $this->location->render($outputFormat)
85+
return $outputFormat->getFormatter()->comments($this) . '@import ' . $this->location->render($outputFormat)
8686
. ($this->mediaQuery === null ? '' : ' ' . $this->mediaQuery) . ';';
8787
}
8888

0 commit comments

Comments
 (0)