-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Description
Hi,
I just upgraded from 1.3.29 to 1.3.31, and also doctrine/doctrine-bundle from 2.7.0 to 2.8.2
I have now errors with the repository->findOneBy
method which returns now object|null
instead of the expected entity or null.
I use an objectManagerLoader, I include vendor/phpstan/phpstan-doctrine/extension.neon
and vendor/phpstan/phpstan-doctrine/rules.neon
. I tried with and without bleedingEdge.
The errors disappear when I downgrade the StubFilesExtensionLoader->getFiles()
method and go back to the
return
[
$path . '/ORM/QueryBuilder.stub',
$path . '/EntityRepository.stub',
];
I saw that an other issue was created and solved by 1.3.30 but it's still not ok for me.
ste93cry and Warxcell
Metadata
Metadata
Assignees
Labels
No labels