Skip to content

Commit

Permalink
[framework] Annotations fixer access of nullable does not break fixer…
Browse files Browse the repository at this point in the history
… (#3357)

Co-authored-by: Milan Staňo <milan.stano@shopsys.com>
  • Loading branch information
2 people authored and TomasLudvik committed Aug 28, 2024
1 parent ea56305 commit 7b2c8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component/ClassExtension/MethodAnnotationsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function isMethodImplementedInClass(string $methodName, ReflectionClas
try {
$reflectionMethod = $reflectionClass->getMethod($methodName);

return $reflectionMethod->getDeclaringClass()->getName() === $reflectionClass->getName();
return $reflectionMethod?->getDeclaringClass()->getName() === $reflectionClass->getName();
} catch (OutOfBoundsException $ex) {
return false;
}
Expand Down

0 comments on commit 7b2c8e2

Please sign in to comment.