8000 Tweaks thanks to Stof · symfony/symfony@1784212 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1784212

Browse files
committed
Tweaks thanks to Stof
1 parent 02d5603 commit 1784212

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Symfony/Component/AssetMapper/AssetMapperCompiler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class AssetMapperCompiler
2626

2727
/**
2828
* @param iterable<AssetCompilerInterface> $assetCompilers
29+
* @param \Closure(): AssetMapperInterface $assetMapperFactory
2930
*/
3031
public function __construct(private readonly iterable $assetCompilers, private readonly \Closure $assetMapperFactory)
3132
{

src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function compile(string $content, MappedAsset $asset, AssetMapperInterfac
4848
return $matches[0];
4949
}
5050

51-
$asset->addDependency(new AssetDependency($dependentAsset, isContentDependency: true));
51+
$asset->addDependency(new AssetDependency($dependentAsset));
5252
$relativePath = $this->createRelativePath($asset->getPublicPathWithoutDigest(), $dependentAsset->getPublicPath());
5353

5454
return 'url("'.$relativePath.'")';

src/Symfony/Component/AssetMapper/Compiler/SourceMappingUrlsCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function compile(string $content, MappedAsset $asset, AssetMapperInterfac
4444
return $matches[0];
4545
}
4646

47-
$asset->addDependency(new AssetDependency($dependentAsset, isContentDependency: true));
47+
$asset->addDependency(new AssetDependency($dependentAsset));
4848
$relativePath = $this->createRelativePath($asset->getPublicPathWithoutDigest(), $dependentAsset->getPublicPath());
4949

5050
return $matches[1].'# sourceMappingURL='.$relativePath;

0 commit comments

Comments
 (0)
0