-
Notifications
You must be signed in to change notification settings - Fork 99
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
issue with findOneByX #52
Comments
I see - real method name clashes with the magic method convention. |
@ondrejmirtes Today I ran into similar problem. Having repo like class FooRepository
{
public function findByDoesNotMatter(): ?Foo { }
} results in PHPStan thinking it's an array because of findBy, not findOneBy.
Plus, real method clashes with the magic one. |
I agree, will fix it. BTW I think you should adhere to the same convention and rename this method to |
Yeah, that's what I did. Luckily, that was the only method that was out of convention. |
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. |
In some repositories I have some custom functions named like
findOneByX
Example:
Seems that is not working properly:
The text was updated successfully, but these errors were encountered: