Skip to content

Commit 86faecd

Browse files
authored
Create crud skeleton (#3629)
2 parents c3c1c41 + 72bbe2b commit 86faecd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Phpstan/EntityDataObjectPropertyHasNoTypehintRule.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ private function isDataObjectWithAssociatedEntity(Scope $scope): bool
7272
$reflectionClass = new ReflectionClass(substr($className, 0, -4));
7373
$docComment = $reflectionClass->getDocComment();
7474

75+
if ($docComment === false) {
76+
return false;
77+
}
78+
7579
return str_contains($docComment, '@ORM\Entity');
7680
} catch (ReflectionException) {
7781
return false;

0 commit comments

Comments
 (0)