Skip to content

Cast string to int before calling addSeconds#66

Merged
SmoDav merged 1 commit into
SmoDav:masterfrom
ngarawakimani:master
Apr 2, 2026
Merged

Cast string to int before calling addSeconds#66
SmoDav merged 1 commit into
SmoDav:masterfrom
ngarawakimani:master

Conversation

@ngarawakimani
Copy link
Copy Markdown
Contributor

Got an error in Carbon while testing this package in laravel.
Submitting a fix for it and hopping that I'm not violating any of your contribution guidelines if you have any.

Screenshot from 2026-03-14 23-52-43-EDIT

Mpesa auth response is a string while Carbon expects an int or float when adding seconds.
I fixed it by casting to int before calling addSeconds.

@SmoDav SmoDav merged commit 8191b77 into SmoDav:master Apr 2, 2026
1 check failed
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.

2 participants