-
Notifications
You must be signed in to change notification settings - Fork 44
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
LessSpecificImplementedReturnType false-positive #71
Comments
As far as I can see (based on comments in this |
Based on the changes upstream: doctrine/persistence#104 Refs #71
Is there any info when there will be a new release with all of the bugfixes? :) |
I want to fix remaining deprecation errors first, so it would be some time next week. |
@weirdan I'm still getting this error Based what I see |
LessSpecificImplementedReturnType - src/Repository/SomethingRepository.php:9:12 - The inherited return type 'list<App\Entity\Something>' for Doctrine\ORM\EntityRepository::findAll is more specific than the implemented return type for Doctrine\ORM\EntityRepository::findall 'array<array-key, App\Entity\Something>'
Code in my SomethingRepository:
This is a snippet from Doctrine\ORM\EntityRepository
Just an array.
This is from Doctrine\Persistence\ObjectRepository that implemented by Doctrine\ORM\EntityRepository:
So it returns just T[], Something[] in my case.
Looks like there is a problem in the plugin's stub files.
The text was updated successfully, but these errors were encountered: