Skip to content

Commit 97b672d

Browse files
Fixed PHPStan errors
1 parent 7f83674 commit 97b672d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/AssetMapper/SassCssCompiler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class SassCssCompiler implements AssetCompilerInterface
1818
{
1919
public function __construct(
2020
private array $scssPaths,
21-
private string $cssPathDirectory,
22-
private readonly SassBuilder $sassBuilder
21+
private string $cssPathDirectory
2322
) {
2423
}
2524

@@ -36,7 +35,7 @@ public function supports(MappedAsset $asset): bool
3635

3736
public function compile(string $content, MappedAsset $asset, AssetMapperInterface $assetMapper): string
3837
{
39-
$cssFile = $this->sassBuilder->guessCssNameFromSassFile($asset->sourcePath, $this->cssPathDirectory);
38+
$cssFile = SassBuilder::guessCssNameFromSassFile($asset->sourcePath, 0, $this->cssPathDirectory);
4039

4140
$asset->addFileDependency($cssFile);
4241

0 commit comments

Comments
 (0)