Skip to content

[BUGFIX] abs() in timezone method fails if arg is simplexmlelement #154

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

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

ChrisB9
Copy link
Contributor

@ChrisB9 ChrisB9 commented Aug 21, 2020

(i am using php 8.0 in my project)

The timezone can either be int or of type SimpleXMLElement:

image

floor(abs($offset) / 60) only accepts int, thus the method fails to convert it

@cmfcmf cmfcmf merged commit caf8ea1 into cmfcmf:master Aug 21, 2020
@cmfcmf
Copy link
Owner

cmfcmf commented Aug 21, 2020

Thanks!

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