:100644 100644 4117ef1 0000000 M src/Asset/AssetCollection.php :100644 100644 7e1fe70 0000000 M src/Html/HtmlRenderer.php :100644 100644 6474c53 0000000 M src/Resolver/ManifestAssetResolver.php :100644 100644 351d5b6 0000000 M tests/ManifestChunkTest.php :100644 100644 b08a84f 0000000 M tests/ViteProductionTest.php diff --git a/src/Asset/AssetCollection.php b/src/Asset/AssetCollection.php index 4117ef1946f0259c5248cf36c53dba810179e6d4..f33c7b754f22c15ced6190322c7a5b3431eb57c8 100644 --- a/src/Asset/AssetCollection.php +++ b/src/Asset/AssetCollection.php @@ -76,7 +76,7 @@ final readonly class AssetCollection implements Countable, IteratorAggregate * * @return AssetCollection A new collection holding both sequences. */ - public function append(AssetInterface ...$assets): AssetCollection + public function append(AssetInterface ...$assets): self { return new self([...$this->assets, ...$assets]); } @@ -166,7 +166,7 @@ final readonly class AssetCollection implements Countable, IteratorAggregate * * @return AssetCollection A new collection holding both sequences. */ - public function prepend(AssetInterface ...$assets): AssetCollection + public function prepend(AssetInterface ...$assets): self { return new self([...$assets, ...$this->assets]); } diff --git a/src/Html/HtmlRenderer.php b/src/Html/HtmlRenderer.php index 7e1fe70909df1c98b8c5012f695d011c9d6f562b..84608465ec4bdfd95c3473521a842f98589c9889 100644 --- a/src/Html/HtmlRenderer.php +++ b/src/Html/HtmlRenderer.php @@ -82,7 +82,7 @@ final class HtmlRenderer private function attributesFor(AssetInterface $asset, HtmlRenderOptions $options): array { $attributes = []; - + $nonce = $options->nonce(); if ($nonce !== null) { diff --git a/src/Resolver/ManifestAssetResolver.php b/src/Resolver/ManifestAssetResolver.php index 6474c53e13a01df40891c8f54b934dcf4ddb5335..257994fe86d766c24fff3df17a4f0e829f2d5b8e 100644 --- a/src/Resolver/ManifestAssetResolver.php +++ b/src/Resolver/ManifestAssetResolver.php @@ -196,7 +196,7 @@ final readonly class ManifestAssetResolver implements AssetResolverInterface * @param array $scripts Module scripts keyed by asset URL. * @param array $preloads Module-preload hints keyed by asset URL. * - * @return iterable Generator yielding stylesheets, then scripts, then + * @return iterable Generator yielding stylesheets, then scripts, then * preloads. */ private function orderedAssets(array $stylesheets, array $scripts, array $preloads): iterable diff --git a/tests/ManifestChunkTest.php b/tests/ManifestChunkTest.php index 351d5b659fb866de234dcc9257704fce223d08fe..b509cefa25fd28fb66509f8da93c990b4ef7e1c7 100644 --- a/tests/ManifestChunkTest.php +++ b/tests/ManifestChunkTest.php @@ -135,15 +135,15 @@ final class ManifestChunkTest extends TestCase self::assertSame( 'resources/app.js', $configured->src(), - "Resetting must not mutate the configured source path.", + 'Resetting must not mutate the configured source path.', ); self::assertTrue( $configured->isEntry(), - "Resetting must not mutate the configured entrypoint flag.", + 'Resetting must not mutate the configured entrypoint flag.', ); self::assertTrue( $configured->isDynamicEntry(), - "Resetting must not mutate the configured dynamic entrypoint flag.", + 'Resetting must not mutate the configured dynamic entrypoint flag.', ); } diff --git a/tests/ViteProductionTest.php b/tests/ViteProductionTest.php index b08a84fbd8b0e4359f859f0df4faac695e5012e6..b0fc1b7263d148b3b1aa8bf4a0b34468b63722f8 100644 --- a/tests/ViteProductionTest.php +++ b/tests/ViteProductionTest.php @@ -124,7 +124,6 @@ final class ViteProductionTest extends TestCase ); } - public function testImportedCssChunkIsRenderedAndNotPreloaded(): void { $assets = $this->vite('css-chunk-import-manifest.json', ['resources/js/app.js'])->resolve();