From e8f70c75b98fe709b2890829b5bc12d47b90fec6 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Tue, 30 May 2017 16:55:30 +0200 Subject: [PATCH] [Cache] Ignore missing annotations.php --- src/Symfony/Component/Cache/Traits/PhpArrayTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Cache/Traits/PhpArrayTrait.php b/src/Symfony/Component/Cache/Traits/PhpArrayTrait.php index 2b0ae50f6a..2d2c7db3d0 100644 --- a/src/Symfony/Component/Cache/Traits/PhpArrayTrait.php +++ b/src/Symfony/Component/Cache/Traits/PhpArrayTrait.php @@ -126,6 +126,6 @@ EOF; */ private function initialize() { - $this->values = @(include $this->file) ?: array(); + $this->values = file_exists($this->file) ? (include $this->file ?: array()) : array(); } }