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
Phpstan bleeding edge cannot assert that JWTAuthenticationFailureResponse extends from Response #7157
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Yeah, PHPStan most likely doesn't see the What you can try is to put this file https://github.com/lexik/LexikJWTAuthenticationBundle/blob/2.x/Response/JWTAuthenticationFailureResponse.php in phpstan.neon |
Oh yes, it works, thank you for your answer! Will this be fixed in future versions? |
Nope, you need to fix it yourself like that, PHPStan does not have a crystal ball to know which file needs to be loaded in order to work :) Thanks. |
...or maybe we actually can :) phpstan/phpstan-src@691e89a Can you please try the latest 1.6.x-dev and remove the |
The error is still present unfortunately |
But why does it work without the bleeding edge functionalities and not with? Is this the new fully static reflection engine? |
Yes. Could you please create a small reproducing repository that shows this problem? I want to crack it :) |
Yes no problem, https://github.com/GErpeldinger/phpstan-issue-7157-replication |
The problem isn't in |
Right now you can use the |
Thank you for your work! |
Thanks a lot. I'm going to fix that in LexikJWTAuthenticationBundle. |
I managed to make PHPStan discover |
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
Phpstan version 1.6.3
Hello, i have updated today phpstan to last version, wanting to try the bleeding edge features, I activated them and it seems that it is a problem to recognize that a class of LexikJWTAuthenticationBundle extends from JsonResonse and therefore from Response.
This class have a comptibility layer, can this be the problem?
https://github.com/lexik/LexikJWTAuthenticationBundle/blob/2.x/Response/JWTAuthenticationFailureResponse.php
Code snippet that reproduces the problem
I don't think i can reproduce it on https://phpstan.org/try, but i think it can be easy to reproduce it in a symfony controller:
Expected output
Did PHPStan help you today? Did it make you happy in any way?
Yes, it certainly changed my way of coding for the better, thanks for your work :D
The text was updated successfully, but these errors were encountered: