Add support for Doctrine ORM 3 #3823
Annotations
4 errors and 1 warning
Run Psalm:
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php#L51
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php:51:16: InvalidReturnStatement: The inferred type 'Doctrine\Persistence\ObjectRepository<T:fn-doctrine\orm\repository\repositoryfactory::getrepository as object>' does not match the declared return type 'Doctrine\Persistence\ObjectRepository<T:fn-doctrine\orm\repository\repositoryfactory::getrepository as object>&Doctrine\ORM\EntityRepository' for Sylius\Bundle\ResourceBundle\Doctrine\ORM\ContainerRepositoryFactory::getRepository (see https://psalm.dev/128)
|
Run Psalm:
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php#L57
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php:57:8: MoreSpecificReturnType: The declared return type 'Doctrine\ORM\EntityRepository' for Sylius\Bundle\ResourceBundle\Doctrine\ORM\ContainerRepositoryFactory::getOrCreateRepository is more specific than the inferred return type 'Doctrine\Persistence\ObjectRepository' (see https://psalm.dev/070)
|
Run Psalm:
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php#L64
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php:64:16: LessSpecificReturnStatement: The type 'Doctrine\Persistence\ObjectRepository' is more general than the declared return type 'Doctrine\ORM\EntityRepository' for Sylius\Bundle\ResourceBundle\Doctrine\ORM\ContainerRepositoryFactory::getOrCreateRepository (see https://psalm.dev/129)
|
Run Psalm
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading