Skip to content

Commit

Permalink
Fix caching of undeletable annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaik Dean committed May 26, 2020
1 parent 3653648 commit 7b6c964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EventListener/UndeletableSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ protected function classIsUndeletable($class)

if (!array_key_exists($class, $cache)) {
$refl = new \ReflectionClass($class);
$cache['class'] = (null !== $this->reader->getClassAnnotation($refl, self::ANNOTATION_CLASS));
$cache[$class] = (null !== $this->reader->getClassAnnotation($refl, self::ANNOTATION_CLASS));
}

return $cache['class'];
return $cache[$class];
}
}

0 comments on commit 7b6c964

Please sign in to comment.