Skip to content

Commit

Permalink
Ensure key exists before checking array value
Browse files Browse the repository at this point in the history
  • Loading branch information
jrjohnson committed Mar 25, 2019
1 parent b296860 commit f8b4ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Cache/Traits/PhpFilesTrait.php
Expand Up @@ -133,7 +133,7 @@ protected function doFetch(array $ids)
*/
protected function doHave($id)
{
if ($this->appendOnly && $this->values[$id]) {
if ($this->appendOnly && isset($this->values[$id])) {
return true;
}

Expand Down

0 comments on commit f8b4ade

Please sign in to comment.