Skip to content

Commit 83457e0

Browse files
committed
[CLEANUP] Avoid magic method forwarding in Import
Part of #1147
1 parent 230fd2a commit 83457e0

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
@@ -96,12 +96,6 @@ parameters:
9696
count: 1
9797
path: ../src/Property/Charset.php
9898

99-
-
100-
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
101-
identifier: method.notFound
102-
count: 1
103-
path: ../src/Property/Import.php
104-
10599
-
106100
message: '#^Only booleans are allowed in an if condition, string given\.$#'
107101
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)