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

Cast JWT_TTL value to integer in config.php if sourced from .env #2257

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

D-Redouane
Copy link

The env file is passing values as string and if manually the developer set the JWT_TTL value in the env file an error of :

Carbon\\Carbon::rawAddUnit(): Argument #3 ($value) must be of type int|float, string given,

will appear

Fixes #2256

…ent variable

The env file is passing values as string and if manually the developer set the JWT_TTL value in the env file an error of : 
```
Carbon\\Carbon::rawAddUnit(): Argument tymondesigns#3 ($value) must be of type int|float, string given,
```
will appear

Fixes tymondesigns#2256
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.

TypeError: Carbon\Carbon::rawAddUnit(): Argument #3 ($value) must be of type int|float, string given,
1 participant