Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculation/DateTime Failure With PHP8 (PHPOffice#1661)
The following code generates an error with PHP8: if ($t1[1] > 29) { $t1[1] += 1900; Under the "right" conditions, PHP8 evaluates the condition as true when PHP8 is a non-numeric string and then generates an error trying to perform += on that non-numeric string. Adding a numeric test eliminates the problem. All unit tests involving this code now succeed with both PHP7 and PHP8.
- Loading branch information