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.
This commit is contained in:
Tobias Schultze
2018-04-10 18:31:36 +02:00
committed by GitHub
parent 87ee409783
commit 8ceb47178b

View File

@@ -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);