Avoid returning null from EntityManager::getReference()
and getPartialReference()
#7921
Annotations
4 errors
Run static analysis with phpstan/phpstan:
src/EntityManager.php#L395
Call to static method forInstance() on an unknown class Doctrine\ORM\Exception\InstanceOfTheWrongTypeEncountered.
|
Run static analysis with phpstan/phpstan:
src/EntityManager.php#L398
Method Doctrine\ORM\EntityManager::getReference() should return T of object but returns object.
|
Run static analysis with phpstan/phpstan:
src/EntityManager.php#L409
Method Doctrine\ORM\EntityManager::getReference() should return T of object but returns Doctrine\ORM\Proxy\InternalProxy.
|
Run static analysis with phpstan/phpstan
Process completed with exit code 1.
|
Loading