Skip to content

Commit ebb96d6

Browse files
Changed order of method arguments
1 parent 97b672d commit ebb96d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/AssetMapper/SassCssCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function supports(MappedAsset $asset): bool
3535

3636
public function compile(string $content, MappedAsset $asset, AssetMapperInterface $assetMapper): string
3737
{
38-
$cssFile = SassBuilder::guessCssNameFromSassFile($asset->sourcePath, 0, $this->cssPathDirectory);
38+
$cssFile = SassBuilder::guessCssNameFromSassFile($asset->sourcePath, $this->cssPathDirectory);
3939

4040
$asset->addFileDependency($cssFile);
4141

src/SassBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getScssCssTargets(): array
7676
throw new \Exception(sprintf('Could not find Sass file: "%s"', $sassPath));
7777
}
7878

79-
$targets[] = $sassPath.':'.self::guessCssNameFromSassFile($sassPath, $fileName, $this->cssPath);
79+
$targets[] = $sassPath.':'.self::guessCssNameFromSassFile($sassPath, $this->cssPath, $fileName);
8080
}
8181

8282
return $targets;
@@ -90,7 +90,7 @@ public function setOutput(SymfonyStyle $output): void
9090
/**
9191
* @internal
9292
*/
93-
public static function guessCssNameFromSassFile(string $sassFile, string|int $fileName, string $outputDirectory): string
93+
public static function guessCssNameFromSassFile(string $sassFile, string $outputDirectory, string|int $fileName = null): string
9494
{
9595
if (\is_int($fileName)) {
9696
$fileName = basename($sassFile, '.scss');

0 commit comments

Comments
 (0)