Skip to content

Commit da4ea86

Browse files
author
lalshe
committed
Do not extract types twice, when all inner extractors fails
1 parent f917041 commit da4ea86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Extractor/FailOverExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getTypes(string $class, string $property, array $context = []):
4242
{
4343
$cacheKey = \sha1($class . $property);
4444

45-
if (isset($this->localStorage[$cacheKey]) === false)
45+
if (\array_key_exists($cacheKey, $this->localStorage) === false)
4646
{
4747
$this->localStorage[$cacheKey] = null;
4848

0 commit comments

Comments
 (0)