Skip to content

Avoid E_NOTICE and E_WARNING in PHP 7.1#134

Open
olivier-idlab wants to merge 1 commit intopsliwa:masterfrom
idlab-geneve:patch-1
Open

Avoid E_NOTICE and E_WARNING in PHP 7.1#134
olivier-idlab wants to merge 1 commit intopsliwa:masterfrom
idlab-geneve:patch-1

Conversation

@olivier-idlab
Copy link

Since PHP 7.1, E_NOTICE and E_WARNING are produced if unexpected characters are found when implicitly converting a string to value. Columns with relative width now produce errors when used in arithmetic operations. A workaround is to explicitly cast string to value before doing arithmetic operations.

See https://wiki.php.net/rfc/invalid_strings_in_arithmetic

Since PHP 7.1, E_NOTICE and E_WARNING are produced if unexpected characters are found when implicitly converting a string to value. Columns with relative width now produce errors when used in arithmetic operations. A workaround is to explicitly cast string to value before doing arithmetic operations.

See https://wiki.php.net/rfc/invalid_strings_in_arithmetic
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