Skip to content

Add doctrine/orm 3 support #1536

Add doctrine/orm 3 support

Add doctrine/orm 3 support #1536

Triggered via pull request June 16, 2024 19:15
Status Failure
Total duration 46s
Artifacts

qa.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 3 warnings
Rector
Process completed with exit code 1.
PHPStan: src/AuditReader.php#L199
PHPDoc tag @throws with type Doctrine\DBAL\Exception|Doctrine\ORM\ORMException|RuntimeException|SimpleThings\EntityAudit\Exception\DeletedException|SimpleThings\EntityAudit\Exception\NoRevisionFoundException|SimpleThings\EntityAudit\Exception\NotAuditedException is not subtype of Throwable
PHPStan: src/AuditReader.php#L330
Parameter #2 $columnMap of method SimpleThings\EntityAudit\AuditReader::createEntity() expects array<string, string>, array<int|string, string> given.
PHPStan: src/AuditReader.php#L394
PHPDoc tag @throws with type Doctrine\DBAL\Exception|Doctrine\ORM\ORMException|RuntimeException|SimpleThings\EntityAudit\Exception\DeletedException|SimpleThings\EntityAudit\Exception\NoRevisionFoundException|SimpleThings\EntityAudit\Exception\NotAuditedException is not subtype of Throwable
PHPStan: src/AuditReader.php#L476
Parameter #2 $columnMap of method SimpleThings\EntityAudit\AuditReader::createEntity() expects array<string, string>, array<int|string, string> given.
PHPStan: src/AuditReader.php#L654
PHPDoc tag @throws with type Doctrine\DBAL\Exception|Doctrine\ORM\ORMException|RuntimeException|SimpleThings\EntityAudit\Exception\DeletedException|SimpleThings\EntityAudit\Exception\NoRevisionFoundException|SimpleThings\EntityAudit\Exception\NotAuditedException is not subtype of Throwable
PHPStan: src/AuditReader.php#L707
PHPDoc tag @throws with type Doctrine\DBAL\Exception|Doctrine\ORM\ORMException|SimpleThings\EntityAudit\Exception\DeletedException|SimpleThings\EntityAudit\Exception\NoRevisionFoundException|SimpleThings\EntityAudit\Exception\NotAuditedException is not subtype of Throwable
PHPStan: src/AuditReader.php#L826
PHPDoc tag @throws with type Doctrine\DBAL\Exception|Doctrine\ORM\ORMException|RuntimeException|SimpleThings\EntityAudit\Exception\DeletedException|SimpleThings\EntityAudit\Exception\NoRevisionFoundException|SimpleThings\EntityAudit\Exception\NotAuditedException is not subtype of Throwable
PHPStan: src/AuditReader.php#L943
Parameter #2 $id of method SimpleThings\EntityAudit\AuditReader::find() expects array<string, int|string>|int|string, array<int|string, int|string> given.
PHPStan: src/AuditReader.php#L951
Parameter #1 $criteria of method Doctrine\ORM\EntityRepository<T of object>::findOneBy() expects array<string, mixed>, array<int|string, int|string> given.
PHPStan: src/AuditReader.php#L1051
Parameter #1 $mapping of static method SimpleThings\EntityAudit\AuditReader::getJoinTableName() expects array<string, mixed>|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping, Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping given.
UndefinedDocblockClass: src/AuditReader.php#L191
src/AuditReader.php:191:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Doctrine\ORM\ORMException does not exist (see https://psalm.dev/200)
UndefinedDocblockClass: src/AuditReader.php#L388
src/AuditReader.php:388:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Doctrine\ORM\ORMException does not exist (see https://psalm.dev/200)
UndefinedDocblockClass: src/AuditReader.php#L646
src/AuditReader.php:646:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Doctrine\ORM\ORMException does not exist (see https://psalm.dev/200)
UndefinedDocblockClass: src/AuditReader.php#L699
src/AuditReader.php:699:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Doctrine\ORM\ORMException does not exist (see https://psalm.dev/200)
UndefinedDocblockClass: src/AuditReader.php#L818
src/AuditReader.php:818:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Doctrine\ORM\ORMException does not exist (see https://psalm.dev/200)
InvalidArgument: src/AuditReader.php#L1011
src/AuditReader.php:1011:29: InvalidArgument: Argument 4 of SimpleThings\EntityAudit\Collection\AuditedCollection::__construct expects array<string, mixed>, but Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping provided (see https://psalm.dev/004)
PossiblyInvalidArgument: src/AuditReader.php#L1051
src/AuditReader.php:1051:49: PossiblyInvalidArgument: Argument 1 of SimpleThings\EntityAudit\AuditReader::getJoinTableName expects Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|array<string, mixed>, but possibly different type Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping provided (see https://psalm.dev/092)
TypeDoesNotContainType: src/EventListener/CreateSchemaListener.php#L101
src/EventListener/CreateSchemaListener.php:101:14: TypeDoesNotContainType: Type 1 for $cm->inheritanceType is always !=int(1) (see https://psalm.dev/056)
NoValue: src/EventListener/CreateSchemaListener.php#L102
src/EventListener/CreateSchemaListener.php:102:88: NoValue: All possible types for this argument were invalidated - This may be dead code (see https://psalm.dev/179)
PossiblyInvalidArgument: src/EventListener/CreateSchemaListener.php#L115
src/EventListener/CreateSchemaListener.php:115:62: PossiblyInvalidArgument: Argument 1 of SimpleThings\EntityAudit\EventListener\CreateSchemaListener::getJoinTableName expects Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|array<string, mixed>, but possibly different type Doctrine\ORM\Mapping\ManyToManyInverseSideMapping|Doctrine\ORM\Mapping\ManyToManyOwningSideMapping|Doctrine\ORM\Mapping\ManyToOneAssociationMapping|Doctrine\ORM\Mapping\OneToManyAssociationMapping|Doctrine\ORM\Mapping\OneToOneInverseSideMapping|Doctrine\ORM\Mapping\OneToOneOwningSideMapping provided (see https://psalm.dev/092)
Rector
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.