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

fix addMinutes to Carbon 3 #239

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

emtudo
Copy link
Contributor

@emtudo emtudo commented Mar 19, 2024

in Carbon 3, the return Utils::now()->addMinutes($this->ttl)->getTimestamp() line gives an error if it does not receive an integer.

This code corrects that, but it doesn't handle null values, I don't know why there is a null value.

@Messhias Messhias merged commit 195bd0c into PHP-Open-Source-Saver:main Mar 19, 2024
33 checks passed
@mfn
Copy link
Contributor

mfn commented Mar 20, 2024

Nice, thanks @emtudo for the the fix!

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.

None yet

3 participants