Skip to content

Commit

Permalink
Remove wrong overrides from .phpstorm.meta.php
Browse files Browse the repository at this point in the history
Overrides for getRepository are invalid – it overrides returned type from `@returns Collection<T>` to returning the entity directly `@returns T`

See DEVSENSE/phptools-docs#620
  • Loading branch information
vitkutny authored and f3l1x committed Aug 20, 2024
1 parent c8b43bb commit f3afa2c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
override(\Doctrine\ORM\EntityManagerInterface::find(0), map([
'' => '@',
]));
override(\Doctrine\ORM\EntityManagerInterface::getRepository(0), map([
'' => '@',
]));
override(\Doctrine\ORM\EntityManagerInterface::getReference(0), map([
'' => '@',
]));
override(\Doctrine\Persistence\ObjectManager::getRepository(0), map([
'' => '@',
]));
}

0 comments on commit f3afa2c

Please sign in to comment.