Skip to content

Commit e531347

Browse files
authored
Merge pull request #1 from andrew-demb/arr-key-exists
Use `array_key_exists` instead `isset` (as null-values is not expected)
2 parents f917041 + f25c40b commit e531347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Extensions/PropertyNormalizerWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function extractAttributes(object $object, string $format = null, arra
4949
{
5050
$class = \get_class($object);
5151

52-
if (false === isset($this->localStorage[$class]))
52+
if (false === \array_key_exists($class, $this->localStorage))
5353
{
5454
$this->localStorage[$class] = parent::extractAttributes($object, $format, $context);
5555
}

0 commit comments

Comments
 (0)