Skip to content

Commit

Permalink
Add error control operator on JsonManifestVersionStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
AirBair authored Jun 30, 2024
1 parent 0c95437 commit 91d8823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/AssetsVersionCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function process(ContainerBuilder $container): void
$runtimeDefinition->setArgument(1, $version);

if (is_a($versionStrategyDefinition->getClass(), JsonManifestVersionStrategy::class, true)) {
$jsonManifestString = file_get_contents($version);
$jsonManifestString = @file_get_contents($version);

if (!\is_string($jsonManifestString)) {
$this->log($container, 'Can not handle assets versioning with "'.$versionStrategyDefinition->getClass().'". The manifest file at "'.$version.' " could not be read');
Expand Down

0 comments on commit 91d8823

Please sign in to comment.