-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
abstract method reported but method is implemented in parent class (1.7.5 and 1.7.6) #7360
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Sorry to report a new thing. I need to think now for a few minutes. Maybe I am wrong and I have to also implement |
https://drone.owncloud.com/owncloud/core/35901/6/8
Hmmm - the CI run on drone finds this error in 2 places. But my local run only finds it once. Now I need to dig into why that difference is happening. |
https://drone.owncloud.com/owncloud/core/35903/6/8 The same 2 errors are reported in CI by phpstan 1.7.5
|
I was able to make your project work locally. This is my output:
Can you tell me how to get rid of the Abou the abstract |
That all occurs in dependency
And
And I have `lib/composer/pear/console_getopt/Console/Getopt.php with:
It is all internal to the "pear" library. I wonder how that could get confused - I don't get the error. The class is not |
I have a solution phpstan/phpstan-src#1373 |
Fixed: phpstan/phpstan-src#1373 Please test PHPStan 1.7.7 once I release it later today. |
1.7.7 Passed CI: https://drone.owncloud.com/owncloud/core/35914/6/8 |
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. |
Bug report
With phpstan 1.7.5 and 1.7.6 I now get a new error reported:
After doing
phpstan clear-result-cache
and a full run:That is a new error. But:
https://github.com/owncloud/core/blob/master/lib/private/Files/Cache/HomeCache.php has no implementation of function
put
class HomeCache extends Cache - https://github.com/owncloud/core/blob/master/lib/private/Files/Cache/Cache.php and that does have a real implementation of function
put
:class Cache implements ICache - https://github.com/owncloud/core/blob/master/lib/public/Files/Cache/ICache.php
And that has just the function definition:
Am I missing something? That inheritance should be OK?
Code snippet that reproduces the problem
Expected output
phpstan passes
Did PHPStan help you today? Did it make you happy in any way?
The text was updated successfully, but these errors were encountered: