Open jspetrak opened 10 months ago
As this error happens inside doctrine/orm, please provide the info about which version of doctrine/orm is used.
reading the code of Doctrine\ORM\Mapping\DefaultTypedFieldMapper
in the latest 2.x and 3.x version, it seems impossible for it to call getName
on null
on line 65 as there is a condition `$type instanceof \ReflectionNamedType around that code.
Maybe an older version had a bug.
``Consider having a BackendEnum class FooEnum. The entity class has following property declaration:
When running PHPStan analysis, it fails with following stacktrace.
When
type
is added to the annotation, PHPStan analysis completes successfully.