You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello since last version of phpstan (1.6), i have an error with the class JWTAuthenticationFailureResponse.
I have the impression that phpstan cannot determine that JWTAuthenticationFailureResponse extends from JsonResponse and therefore from Response, can that be because of the compatibility layer?
80 Call to static method PHPUnit\Framework\Assert::assertInstanceOf() with 'Lexik\\Bundle\\JWTAuthenticationBundle\\Response\\JWTAuthenticationFailureResponse' and Symfony\Component\HttpFoundation\Response will always evaluate to false.
88 Return type (Lexik\Bundle\JWTAuthenticationBundle\Response\JWTAuthenticationFailureResponse) of method App\Security\Handler\AuthenticationFailureHandler::onAuthenticationFailure() should be compatible with return type
(Symfony\Component\HttpFoundation\Response) of method Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface::onAuthenticationFailure()
Thank for your work.
The text was updated successfully, but these errors were encountered:
Update: I only have the problem when I activate the bleeding edge fonctionnalities to have the new phpstan option to reduce memory consumption, maybe this is an issue to report to their repository rather than here.
The problem isn't in eval - the problem is that Lexik\Bundle\JWTAuthenticationBundle\Response\JWTCompatAuthenticationFailureResponse isn't defined acording to PSR-4 rules configured in that package's composer.json. If you put it to a separate file with the right filename, it's going to work.
Hello since last version of phpstan (1.6), i have an error with the class JWTAuthenticationFailureResponse.
I have the impression that phpstan cannot determine that JWTAuthenticationFailureResponse extends from JsonResponse and therefore from Response, can that be because of the compatibility layer?
Exemple in test:
Exemple in code:
Thank for your work.
The text was updated successfully, but these errors were encountered: