Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizen-ci committed Feb 23, 2021
1 parent 6ba7bae commit f036a30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function readClassAnnotation(Class_ $class, string $annotationClassName):
public function readPropertyAnnotation(Property $property, string $annotationClassName): ?object
{
$propertyReflection = $this->getNativePropertyReflection($property);
if ($propertyReflection === null) {
if (! $propertyReflection instanceof ReflectionProperty) {
throw new ShouldNotHappenException();
}

Expand Down

0 comments on commit f036a30

Please sign in to comment.