diff --git a/DependencyInjection/Compiler/AssetsVersionCompilerPass.php b/DependencyInjection/Compiler/AssetsVersionCompilerPass.php index c783c67b..31774979 100644 --- a/DependencyInjection/Compiler/AssetsVersionCompilerPass.php +++ b/DependencyInjection/Compiler/AssetsVersionCompilerPass.php @@ -68,6 +68,11 @@ public function process(ContainerBuilder $container): void $runtimeDefinition->setArgument(1, $version); if (is_a($versionStrategyDefinition->getClass(), JsonManifestVersionStrategy::class, true)) { + if (!file_exists($version)) { + $this->log($container, 'The manifest file at "'.$version.'" does not yet exist'); + + return; + } $jsonManifestString = file_get_contents($version); if (!\is_string($jsonManifestString)) {