Skip to content

Fixes issues with abs() requiring int|float since PHP8 - #61

Open
dsaric-dev wants to merge 1 commit into
the-events-calendar:masterfrom
dsaric-dev:fix_php8_abs_issues
Open

Fixes issues with abs() requiring int|float since PHP8#61
dsaric-dev wants to merge 1 commit into
the-events-calendar:masterfrom
dsaric-dev:fix_php8_abs_issues

Conversation

@dsaric-dev

Copy link
Copy Markdown
Contributor

Hi,

abs() requires int|float since PHP 8.0.0, which causes issues in some cases (when an empty string is sent instead).
This PR replaces all abs() with abs( (int) ) or abs( (float) ).

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