Skip to content

Add support for Doctrine ORM 3 #3825

Add support for Doctrine ORM 3

Add support for Doctrine ORM 3 #3825

Triggered via pull request January 14, 2025 10:45
@loic425loic425
synchronize #968
loic425:orm-3
Status Failure
Total duration 42s
Artifacts

build.yml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

57 errors and 11 warnings
PHP 8.3, Symfony ^7.1, ORM
"Array" is not a valid alias.
PHP 8.3, Symfony ^7.1, ORM
Process completed with exit code 1.
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L35
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:35:9: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L42
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:42:13: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L81
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:81:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PossiblyInvalidOperand: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L94
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:94:71: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
PossiblyInvalidArgument: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L95
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:95:36: PossiblyInvalidArgument: Argument 1 of Doctrine\ORM\QueryBuilder::setParameter expects int|string, but possibly different type array<array-key, string>|string provided (see https://psalm.dev/092)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L104
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:104:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PropertyTypeCoercion: src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php#L85
src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php:85:25: PropertyTypeCoercion: $metadata->associationMappings expects 'array<string, Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping>', parent type 'non-empty-array<string, Doctrine\ORM\Mapping\AssociationMapping>' provided (see https://psalm.dev/198)
PossiblyNullReference: src/Bundle/EventListener/ORMTranslatableListener.php#L61
src/Bundle/EventListener/ORMTranslatableListener.php:61:26: PossiblyNullReference: Cannot call method isAbstract on possibly null value (see https://psalm.dev/083)
PHP 8.3, Symfony ^6.4, ORM 3.*
Process completed with exit code 2.
InvalidReturnStatement: src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php#L50
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php:50: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)
PHP 8.3, Symfony ^6.4, ORM 2.*
Process completed with exit code 2.
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L35
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:35:9: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L42
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:42:13: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L81
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:81:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PossiblyInvalidOperand: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L94
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:94:71: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
PossiblyInvalidArgument: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L95
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:95:36: PossiblyInvalidArgument: Argument 1 of Doctrine\ORM\QueryBuilder::setParameter expects int|string, but possibly different type array<array-key, string>|string provided (see https://psalm.dev/092)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L104
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:104:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PropertyTypeCoercion: src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php#L85
src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php:85:25: PropertyTypeCoercion: $metadata->associationMappings expects 'array<string, Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping>', parent type 'non-empty-array<string, Doctrine\ORM\Mapping\AssociationMapping>' provided (see https://psalm.dev/198)
PossiblyNullReference: src/Bundle/EventListener/ORMTranslatableListener.php#L61
src/Bundle/EventListener/ORMTranslatableListener.php:61:26: PossiblyNullReference: Cannot call method isAbstract on possibly null value (see https://psalm.dev/083)
PHP 8.3, Symfony ^7.1, ORM 3.*
Process completed with exit code 2.
InvalidReturnStatement: src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php#L50
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php:50: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)
PHP 8.3, Symfony ^7.1, ORM 2.*
Process completed with exit code 2.
InvalidReturnStatement: src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php#L50
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php:50: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)
PHP 8.1, Symfony ^6.4, ORM 2.*
Process completed with exit code 2.
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L35
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:35:9: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L42
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:42:13: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L81
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:81:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PossiblyInvalidOperand: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L94
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:94:71: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
PossiblyInvalidArgument: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L95
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:95:36: PossiblyInvalidArgument: Argument 1 of Doctrine\ORM\QueryBuilder::setParameter expects int|string, but possibly different type array<array-key, string>|string provided (see https://psalm.dev/092)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L104
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:104:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PropertyTypeCoercion: src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php#L85
src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php:85:25: PropertyTypeCoercion: $metadata->associationMappings expects 'array<string, Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping>', parent type 'non-empty-array<string, Doctrine\ORM\Mapping\AssociationMapping>' provided (see https://psalm.dev/198)
PossiblyNullReference: src/Bundle/EventListener/ORMTranslatableListener.php#L61
src/Bundle/EventListener/ORMTranslatableListener.php:61:26: PossiblyNullReference: Cannot call method isAbstract on possibly null value (see https://psalm.dev/083)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L35
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:35:9: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
PHP 8.1, Symfony ^6.4, ORM 3.*
Process completed with exit code 2.
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L42
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:42:13: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L81
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:81:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PossiblyInvalidOperand: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L94
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:94:71: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
PossiblyInvalidArgument: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L95
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:95:36: PossiblyInvalidArgument: Argument 1 of Doctrine\ORM\QueryBuilder::setParameter expects int|string, but possibly different type array<array-key, string>|string provided (see https://psalm.dev/092)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L104
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:104:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PropertyTypeCoercion: src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php#L85
src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php:85:25: PropertyTypeCoercion: $metadata->associationMappings expects 'array<string, Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping>', parent type 'non-empty-array<string, Doctrine\ORM\Mapping\AssociationMapping>' provided (see https://psalm.dev/198)
PossiblyNullReference: src/Bundle/EventListener/ORMTranslatableListener.php#L61
src/Bundle/EventListener/ORMTranslatableListener.php:61:26: PossiblyNullReference: Cannot call method isAbstract on possibly null value (see https://psalm.dev/083)
PHP 8.2, Symfony ^6.4, ORM 3.*
Process completed with exit code 2.
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L35
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:35:9: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L42
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:42:13: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_em is not defined (see https://psalm.dev/041)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L81
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:81:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PossiblyInvalidOperand: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L94
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:94:71: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
PossiblyInvalidArgument: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L95
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:95:36: PossiblyInvalidArgument: Argument 1 of Doctrine\ORM\QueryBuilder::setParameter expects int|string, but possibly different type array<array-key, string>|string provided (see https://psalm.dev/092)
UndefinedThisPropertyFetch: src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php#L104
src/Bundle/Doctrine/ORM/ResourceRepositoryTrait.php:104:50: UndefinedThisPropertyFetch: Instance property Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository::$_class is not defined (see https://psalm.dev/041)
PropertyTypeCoercion: src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php#L85
src/Bundle/EventListener/ORMMappedSuperClassSubscriber.php:85:25: PropertyTypeCoercion: $metadata->associationMappings expects 'array<string, Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping>', parent type 'non-empty-array<string, Doctrine\ORM\Mapping\AssociationMapping>' provided (see https://psalm.dev/198)
PossiblyNullReference: src/Bundle/EventListener/ORMTranslatableListener.php#L61
src/Bundle/EventListener/ORMTranslatableListener.php:61:26: PossiblyNullReference: Cannot call method isAbstract on possibly null value (see https://psalm.dev/083)
PHP 8.2, Symfony ^7.1, ORM 3.*
Process completed with exit code 2.
InvalidReturnStatement: src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php#L50
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php:50: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)
PHP 8.2, Symfony ^7.1, ORM 2.*
Process completed with exit code 2.
InvalidReturnStatement: src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php#L50
src/Bundle/Doctrine/ORM/ContainerRepositoryFactory.php:50: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)
PHP 8.2, Symfony ^6.4, ORM 2.*
Process completed with exit code 2.
PHP 8.3, Symfony ^7.1, ORM
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3, Symfony ^6.4, ORM 3.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3, Symfony ^6.4, ORM 2.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3, Symfony ^7.1, ORM 3.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3, Symfony ^7.1, ORM 2.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.1, Symfony ^6.4, ORM 2.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.1, Symfony ^6.4, ORM 3.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.2, Symfony ^6.4, ORM 3.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.2, Symfony ^7.1, ORM 3.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.2, Symfony ^7.1, ORM 2.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.2, Symfony ^6.4, ORM 2.*
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636