Avoid returning null from EntityManager::getReference()
and getPartialReference()
#8920
Annotations
4 errors
|
Run static analysis with Vimeo Psalm:
src/EntityManager.php#L367
src/EntityManager.php:367:66: InvalidReturnType: The declared return type 'T:fn-doctrine\orm\entitymanagerinterface::getreference as object' for Doctrine\ORM\EntityManager::getReference is incorrect, got 'Doctrine\ORM\Proxy\InternalProxy<object>|(T:fn-doctrine\orm\entitymanagerinterface::getreference as object)|null|object' (see https://psalm.dev/011)
|
Run static analysis with Vimeo Psalm:
src/EntityManager.php#L395
src/EntityManager.php:395:23: UndefinedClass: Class, interface or enum named Doctrine\ORM\Exception\InstanceOfTheWrongTypeEncountered does not exist (see https://psalm.dev/019)
|
Run static analysis with Vimeo Psalm
The operation was canceled.
|
Loading