Skip to content

Conversation

@MustafaAMaklad
Copy link

PHP 8+ and recent Carbon versions are stricter about argument types.
Environment variables are always loaded as strings, which causes
Carbon::rawAddUnit() to throw a type error when JWT_TTL is used.

This PR explicitly casts numeric JWT config values to int, aligning with
Laravel config best practices and preventing runtime errors after upgrades.

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

Successfully merging this pull request may close these issues.

1 participant