From b3dd6728b8b029407d94c46aa9af245b42170f4e Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Tue, 25 Aug 2026 11:17:39 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Asset/AssetCollection.php | 4 ++-- src/Resolver/ManifestAssetResolver.php | 2 +- tests/ViteProductionTest.php | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Asset/AssetCollection.php b/src/Asset/AssetCollection.php index 4117ef1..f33c7b7 100644 --- a/src/Asset/AssetCollection.php +++ b/src/Asset/AssetCollection.php @@ -76,7 +76,7 @@ public function all(): array * * @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 @@ public function moduleScripts(): array * * @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/Resolver/ManifestAssetResolver.php b/src/Resolver/ManifestAssetResolver.php index 3e1a115..3c7be58 100644 --- a/src/Resolver/ManifestAssetResolver.php +++ b/src/Resolver/ManifestAssetResolver.php @@ -196,7 +196,7 @@ private function importedChunks(Manifest $manifest, ManifestChunk $chunk, array * @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/ViteProductionTest.php b/tests/ViteProductionTest.php index b08a84f..b0fc1b7 100644 --- a/tests/ViteProductionTest.php +++ b/tests/ViteProductionTest.php @@ -124,7 +124,6 @@ public function testEntrypointsWithSameOutputFileAreDeduplicated(): void ); } - public function testImportedCssChunkIsRenderedAndNotPreloaded(): void { $assets = $this->vite('css-chunk-import-manifest.json', ['resources/js/app.js'])->resolve();