[HttpKernel] Fixes tests for PHP7.4+

This commit is contained in:
Antonin "0x346e3730" CLAUZIER 2021-05-26 12:28:46 +02:00
parent 7ccda8eedb
commit c3ac11cc64
No known key found for this signature in database
GPG Key ID: 7BD8636ACB9F8EE6

View File

@ -349,7 +349,7 @@ class Store implements StoreInterface
{
$path = $this->getPath($key);
return file_exists($path) && false !== ($contents = file_get_contents($path)) ? $contents : null;
return file_exists($path) && false !== ($contents = @file_get_contents($path)) ? $contents : null;
}
/**