Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7c7927

Browse files
[Cache] Remove silenced warning tiggered by PhpArrayAdapter
1 parent be882c4 commit b7c7927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function commit()
328328
*/
329329
private function initialize()
330330
{
331-
$this->values = @(include $this->file) ?: array();
331+
$this->values = file_exists($this->file) ? (include $this->file ?: array()) : array();
332332
}
333333

334334
/**

0 commit comments

Comments
 (0)