Skip to content

Commit f8fc06c

Browse files
dpfaffenbauerclaude
andcommitted
fix Psalm covariantT misparse on ClassMetadata with doctrine/persistence 3.4
Bind the generic template T to object via @param ClassMetadata<object> so Psalm no longer tries to resolve the unbound @template-covariant T as a class named Doctrine\Persistence\Mapping\covariantT. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b257209 commit f8fc06c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/CoreShop/Bundle/ResourceBundle/EventListener/AbstractDoctrineSubscriber.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function __construct(
3434
) {
3535
}
3636

37+
/**
38+
* @param ClassMetadata<object> $metadata
39+
*/
3740
protected function isResource(ClassMetadata $metadata): bool
3841
{
3942
return $metadata->getReflectionClass()->implementsInterface(ResourceInterface::class);

0 commit comments

Comments
 (0)