From 8ceb47178b5a1e06f638a393ec32044c40b969cc Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Tue, 10 Apr 2018 18:31:36 +0200 Subject: [PATCH] Fix wrong type in phpdoc of AbstractIdGenerator \Doctrine\ORM\Mapping\Entity is the annotation class which is not correct. The entity object itself is meant here as tests also assume see https://github.com/doctrine/doctrine2/blob/2.6/tests/Doctrine/Tests/ORM/Id/AssignedGeneratorTest.php#L28 Found this when running phpstan on our code that used a custom generator. --- lib/Doctrine/ORM/Id/AbstractIdGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Id/AbstractIdGenerator.php b/lib/Doctrine/ORM/Id/AbstractIdGenerator.php index dada71e43..011848cbf 100644 --- a/lib/Doctrine/ORM/Id/AbstractIdGenerator.php +++ b/lib/Doctrine/ORM/Id/AbstractIdGenerator.php @@ -27,7 +27,7 @@ abstract class AbstractIdGenerator * Generates an identifier for an entity. * * @param EntityManager $em - * @param \Doctrine\ORM\Mapping\Entity $entity + * @param object $entity * @return mixed */ abstract public function generate(EntityManager $em, $entity);