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
This ticket concerns 1.13.* and 2.* of this package.
Currently, I'm trying to upgrade an application from Symfony 5.4 to Symfony 6.0 (and then later to the most recent 6.x).
This halted my progress:
$ symfony console cache:clear
In PsrCachedReader.php line 222:
Warning: filemtime(): stat failed for /home/.../my-project/vendor/lexik/jwt-authentication-bundle/Security/Authenticator/ForwardCompatAuthenticatorTrait.php(14) : eval()'d code
Turns out a solution was already suggested by someone else in #436, but this solution was never merged. Two changes in lib/Doctrine/Common/Annotations/PsrCachedReader.php solve the issue for me:
Adding use function is_file; on top
Changing [$filename ? filemtime($filename) : 0] to [is_file($filename) ? filemtime($filename) : 0] in two places
Would this be a good improvement for the package, or am I missing something?
P.S. I'll also try to upgrade lexik/jwt-authentication-bundle to 3.* once it becomes available, because the ForwardCompatAuthenticatorTrait only seems to exist in 2.*.
The text was updated successfully, but these errors were encountered:
Yes, fair point. I am aware of this. It would help me and potentially others if this could be done in steps, but it's likely that I will try to move on in one go later this week.
This ticket concerns
1.13.*
and2.*
of this package.Currently, I'm trying to upgrade an application from Symfony 5.4 to Symfony 6.0 (and then later to the most recent 6.x).
This halted my progress:
Turns out a solution was already suggested by someone else in #436, but this solution was never merged. Two changes in
lib/Doctrine/Common/Annotations/PsrCachedReader.php
solve the issue for me:use function is_file;
on top[$filename ? filemtime($filename) : 0]
to[is_file($filename) ? filemtime($filename) : 0]
in two placesWould this be a good improvement for the package, or am I missing something?
P.S. I'll also try to upgrade
lexik/jwt-authentication-bundle
to3.*
once it becomes available, because theForwardCompatAuthenticatorTrait
only seems to exist in2.*
.The text was updated successfully, but these errors were encountered: