-
-
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
PHP 8.0 Compatibility #2082
Comments
Yes. Also waiting for an update because I have another dependency which uses |
I can see PHP 8 was added to composer.json, when can we expect that release? |
@tymondesigns any plans to support php8? |
good evening, |
please, can we have any update on that ? |
Hi all, |
Guys, install the dev-develop / 1.0.x-dev package with composer, it has suport for php: ^7.2|^8.0; I was able to get it to work on the last version of Lumen and PHP 8 with audit. |
This doesn't help if you have |
|
It looks like the dev version works, is there anything that we can we do to help get a tagged release? |
I would say these two version constraints conflict with each other, so either drop PHP 8 support and keep as a workaround I've sidestepped this with |
Has anyone managed to get this working with PHP8.x, and Laravel 8.x. I'm using Laravel Passport 10.x and having issues speicifically with this at the moment. Tried using Considering this is the JWT package within the Laravel and PHP community at the moment, it's embarassing that it's gone unresolved for so long with PHP8 |
@oliversarfas I have it working with PHP8 and Laravel8, the JWT package itself does support PHP8 in it's latest releases: https://packagist.org/packages/lcobucci/jwt Edit - It has supported PHP8 since 2020-11-25 |
That's the lcobucci package, not this one. We need a php8 tagged release |
related to #2103 |
Is there any update on this? |
Any updates? Develop seems to support it. |
@yuyuan20 @atymic |
Just to update everyone who enters this thread:
And the work keeps in progress. Observation: I'm using this package in production without issues. |
If I am trying to deploy my code from Github via Code Pipeline using Elastic Beanstalk (AWS). My question is where and how do I place p.s. i deleted the composer.lock file and github-deploy.config script is as follows: Any help here would be greatly appreciated. All of our deployments have been failing. |
You have to add it in the part not visible in your screenshots (btw: please no screenshots if it's just text only, makes it harder to work with). The command which, according to your first screenshot, runs But I strongly urge to not use this flag: if you don't know 150% what you are doing, don't use it: you will run into problems eventually in your production environment. Rather, switch to https://github.com/PHP-Open-Source-Saver/jwt-auth which is a (mostly) drop-in and supports all recent PHP version and 8+ properly. |
Huge thanks for your response this helped and worked! (sorry bout the screenshots will make sure not to do that again). Thanks again. |
Solved "lcobucci/jwt" version issue with php8 and laravel 8+Basically this problem occur when you declare type in veriable (like: protected string $user_name) or other and try to access from postman because "lcobucci/jwt" is related to token. My laravel version is 8+ and when i run Solution Process Then i run: And finally run : |
Just update your "lcobucci/jwt" version to "lcobucci/jwt": "4.0.0". My case was that and just updating solved the issue on the first that we implemented. But I'm using docker environment so everything on my local machine, production, and UAT are the same. |
try this -> composer require tymon/jwt-auth:* |
The best option is migrate to |
I to solve this issue i'm firstly install this library |
PHP 8.0 is not supported.
Output from Composer:
Problem 1
Problem 2
The text was updated successfully, but these errors were encountered: