Skip to content

Commit

Permalink
FileCacheStorage - suppress potential file load issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 1, 2022
1 parent e1fd5d2 commit b73a396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cache/FileCacheStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function load(string $key, string $variableKey)
return null;
}

$cacheItem = require $filePath;
$cacheItem = @include $filePath;
if (!$cacheItem instanceof CacheItem) {
return null;
}
Expand Down

0 comments on commit b73a396

Please sign in to comment.