Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctrine/orm 2.12.2 and Entity annotation/attribute #7208

Closed
McFistyBuns opened this issue May 3, 2022 · 4 comments
Closed

doctrine/orm 2.12.2 and Entity annotation/attribute #7208

McFistyBuns opened this issue May 3, 2022 · 4 comments
Labels
Milestone

Comments

@McFistyBuns
Copy link

phpstan/phpstan:1.6.4
phpstan/phpstan-doctrine:1.3.3

It appears that a change in the doctrine/orm 2.12.2 Entity annotation/attribute generics now reports an error:

Parameter $repositoryClass of attribute class Entity constructor expects class-string<EntityRepository<T of object>>|null, 'AdminRepository' given.

where in 2.12.1 it doesn't.

https://phpstan.org/r/c0f62d67-f938-40f0-9834-87b7f045e612

@petrparolek
Copy link

commit doctrine/orm@a8425a5 breaks it.

@ondrejmirtes ondrejmirtes transferred this issue from phpstan/phpstan-doctrine May 9, 2022
@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone May 9, 2022
@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@361e064

@ondrejmirtes
Copy link
Member

Fix released in PHPStan 1.6.8: https://github.com/phpstan/phpstan/releases/tag/1.6.8

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants