-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
disallow method call with inheritance #269
Comments
i had no luck with that so far, maybe i use it wrong? here is a simple example illustrating the problem: https://github.com/verfriemelt-dot-org/phpstan-disallowed-calls-example |
Thanks for the example repo. I get this when analyzing it
What do you expect PHPStan to report in the repo? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
given a doctrine repository which looks like this:
i want to disallow magic methods like
$repo->findOneBy([ ... ])
which would work with:but this will also disallow the following method:
🤔 is there an option or could an option be introduced, to limit the scope to only the parent class for that check?
The text was updated successfully, but these errors were encountered: