Skip to content

Commit

Permalink
fix(#944): temporary fix for psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
GErpeldinger committed May 5, 2022
1 parent 1aa30e2 commit 6f299af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Response/JWTCompatAuthenticationFailureResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

use Symfony\Component\HttpFoundation\JsonResponse;

if (80000 <= \PHP_VERSION_ID && (new \ReflectionMethod(JsonResponse::class, 'setData'))->hasReturnType()) {
/**
* The "AND" in the if statement is a temporary fix for the following issue:
* https://github.com/lexik/LexikJWTAuthenticationBundle/issues/944
* https://github.com/vimeo/psalm/issues/7923
*/
if (80000 <= \PHP_VERSION_ID AND (new \ReflectionMethod(JsonResponse::class, 'setData'))->hasReturnType()) {
eval('
namespace Lexik\Bundle\JWTAuthenticationBundle\Response;
Expand Down

0 comments on commit 6f299af

Please sign in to comment.