jurajmajer / enrico

Enrico Service provides holiday dates for several countries.
MIT License
44 stars 22 forks source link

"Parse error: Invalid numeric literal" on php 7.x #5

Closed demaniak closed 5 years ago

demaniak commented 6 years ago

PHP Version 7.2.7

Running in container from this image.

Any call produces this error:

Parse error: Invalid numeric literal in /var/www/html/holiday_library/utils/EquinoxUtils.php on line 10
jurajmajer commented 6 years ago

I have commited the fix. PHP 7 treats integers starting with 0 as octals. It should work now. If not, let me know.