-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Custom method on extended classes are flagged as undefined. #151
Comments
Some of the “method not found” errors originate from prophecy objects. I installed jangregor/phpstan-prophecy and phpstan/extension-installer, but then get the error:
I have no neon file, and I do not see one in your project repository either. |
It looks like many of the errors are due to limitations in the way the core doc blocks are used. The function Connection::schema() will always return a child of \Drupal\Core\Database\Schema, not this particular “abstract for all intents and purposes” class. If I break the following statement
Into
Then the error goes away. If you think this is the expected behavior, feel free to close it. Prophecy is still an issue though. |
How is drupal-check installed?
Environment:
Describe the bug
Drupal-check flags every call to a custom method as undefined.
Console output
Paste the output of the console when running the command with
-vvv
https://travis-ci.org/github/Beakerboy/sqlsrv/builds/671039483
The text was updated successfully, but these errors were encountered: