Skip to content
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

Got issue when upgrade to laravel 8 #1380

Closed
dhha opened this issue Nov 25, 2020 · 6 comments
Closed

Got issue when upgrade to laravel 8 #1380

dhha opened this issue Nov 25, 2020 · 6 comments

Comments

@dhha
Copy link

dhha commented Nov 25, 2020

Hi Guys,

I've just tried to upgrade laravel to 8x from 7x and it require passport 10x, but after successful upgraded i got issue with message
"Using integers for registered date claims is deprecated, please use DateTimeImmutable objects instead."

image

can anyone help me to fix it? thanks

@dhha dhha changed the title Got issue when upgrade to larave 8 Got issue when upgrade to laravel 8 Nov 25, 2020
@SHELA
Copy link

SHELA commented Nov 25, 2020

Hello,
have the same

@driesvints
Copy link
Member

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

@lagbox
Copy link

lagbox commented Nov 25, 2020

@driesvints #1381

@nvahalik
Copy link

nvahalik commented Nov 25, 2020

I'm not on Laravel 8. I'm on 7 but I'm getting the same error.

Looks like updating https://github.com/lcobucci/jwt to 3.4.x from 3.3.0 is also causing this.

Given that 3.4.0 was only released a few hours ago, this seems to be the culprit.

Peg your dependency of lcobucci/jwt to ~3.3.0 and then update it again.

@dhha
Copy link
Author

dhha commented Nov 25, 2020

I'm not on Laravel 8. I'm on 7 but I'm getting the same error.

Looks like updating https://github.com/lcobucci/jwt to 3.4.x from 3.3.0 is also causing this.

Given that 3.4.0 was only released a few hours ago, this seems to be the culprit.

Peg your dependency of lcobucci/jwt to ^3.3.0 and then update it again.

thanks, it works for me just need to downgrade to 3.3.0 👍

@devsi
Copy link

devsi commented Nov 25, 2020

Specifically it is thephpleague/oauth2-server that uses this dependency. Is passport. oauth2-server have lcobucci/jwt set to ^3.3.1 and so following closer to semantic versioning, expects 3.4 to not break compatibility. Technically it does not break compatibility, but rather exposes those production servers that have E_DEPRECATED in their error_reporting settings, and so they aren't considering it a BC break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants