-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
support PHP 8 #2103
Comments
The dev-branch is insufficient in my case because lcobucci/jwt is locked to below <3.4. Another library has a fix for PHP8.0 that requires lcobucci/jwt to be at least 3.4 and so jwt-auth should have lcobucci/jwt upgraded. |
Hello, same here. When will the update be available? Thanks |
1 similar comment
Hello, same here. When will the update be available? Thanks |
Workaround - add this lines in your composer.json, this will override the requirement of <3.4. Works fine for me atm.
|
@s5w95 Hello there, where to add those lines in composer.json? inside any field such as "require" or "require-dev", or it's standalone inside the composer.json? Thanks. |
Add it into the root of the composer.json, can be anywhere or right before it closes the last |
After adding that line, it only help by removing lcobucci/jwt for me which is a not right? jwt-auth wouldn't work without lcobucci/jwt :(
|
Yeah, it's not easy to work around. We do really need to stick to So we must install the 3.3.3. version, which claims incompatibility with php 8.0. The only solution I know for something like that is to use So:
And then |
@JorisDebonnet It does install, but it doesn't want to pull the latest
vonage/client-core has a bug in < 2.7.0 and it only fixed after 2.7.0, but they added requirement to Here is where vonage/client-core fixed the bug and bumped lcobucci to be at least 3.4: link |
I am here to sollecitate, by kindly, an update to use jwt 3.4. It's blocking the upgrade of a whole project to php 8. I respect your time and your work. And we are appreciate everything you could do to accelerate the migration to jwt 3.4. what is the issue with jwt 3.4? Could we help you in anyway? |
Please note that upgrading to jwt 3.4 will not help with php 8.0, because Summary for php 8.0 compatibility
Anyone up to create a PR to solve #2088, #2082 and #2103 by upgrading this package to use (A PR would allow all of us to use that hero's repository until further notice -- and then at some point hopefully the PR is accepted into the develop branch, which can then be released as 2.0. It will require that new major version number because |
You can add
|
I think it is not required. lcobucci/jwt 3.4 is supposed to be compatible with the same API as lcobucci/jwt 4.0, but supports down to PHP v5.6, so an updated version can still be used with PHP 7.2-7.3, it'll simply stay at lcobucci/jwt 3.4, and not update to 4.0. |
Would love to the see the PR for this get merged in, it is the one missing piece for us to be able to move to PHP 8.0. Would rather not have to fork and reimplement ourselves. |
I would like to get a new release to support PHP8 instead of using dev-develop. |
Use https://github.com/PHP-Open-Source-Saver/jwt-auth It's forked and being maintained right now. |
@Sergiobop Awesome stuff, thank you! |
I solved the issue. You can try below link. Thank you |
any update on this in php 8? |
|
Subject of the issue
Problem 1
- tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested.
- tymon/jwt-auth 1.0.2 requires php ^5.5.9|^7.0 -> your php version (8.0.2) does not satisfy that requirement.
My environment
Steps to reproduce
composer update
or
composer require tymon/jwt-auth
The text was updated successfully, but these errors were encountered: