polyfill icon indicating copy to clipboard operation
polyfill copied to clipboard

testSum failures under PHP 8.3

Open NorthNick opened this issue 5 months ago • 1 comments

There are 4 testSum tests, each including the sum of ["a", true, false, null]. The implementation of Sum uses array_sum, which throws a warning when values cannot be converted to int or float under PHP 8.3 (manual page). This causes the test suite to fail, so these tests should be changed or dropped, or modified to expect a warning from PHP 8.3 onwards.

NorthNick avatar Sep 23 '24 07:09 NorthNick