Skip to content

Commit 2704b02

Browse files
authored
Merge pull request #5 from andrew-demb/do-not-extract-types-twice-on-fail
Do not extract types twice, when all inner extractors fails
2 parents fefb1b1 + da4ea86 commit 2704b02

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)