[PR #8398] remove T from class metadata #10970

Closed
opened 2026-01-22 16:09:15 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/8398

State: closed
Merged: Yes


while there's no releasing containing #8374, applying it locally causes the following issue, as ClassMetadata has no generic parameter T.

ERROR: MixedArgumentTypeCoercion - src/Repository/UserRepository.php:48:39 - Argument 2 of Doctrine\ORM\EntityRepository::__construct expects Doctrine\ORM\Mapping\ClassMetadata<App\Entity\User>, parent type Doctrine\ORM\Mapping\ClassMetadata provided (see https://psalm.dev/194)
        parent::__construct($manager, $metadata);

**Original Pull Request:** https://github.com/doctrine/orm/pull/8398 **State:** closed **Merged:** Yes --- while there's no releasing containing #8374, applying it locally causes the following issue, as `ClassMetadata` has no generic parameter `T`. ``` ERROR: MixedArgumentTypeCoercion - src/Repository/UserRepository.php:48:39 - Argument 2 of Doctrine\ORM\EntityRepository::__construct expects Doctrine\ORM\Mapping\ClassMetadata<App\Entity\User>, parent type Doctrine\ORM\Mapping\ClassMetadata provided (see https://psalm.dev/194) parent::__construct($manager, $metadata); ```
admin added the pull-request label 2026-01-22 16:09:15 +01:00
admin closed this issue 2026-01-22 16:09:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10970