geocoder-php / Geocoder

The most featured Geocoder library written in PHP.
https://geocoder-php.org
MIT License
3.94k stars 517 forks source link

Enable PHP 8.0 support #1102

Closed jbelien closed 3 years ago

jbelien commented 3 years ago

I've kept GitHub Actions quite simple. Migration to GitHub Actions will be handled in #1101

jbelien commented 3 years ago

Travis CI is failing with the following error code:

PHP Fatal error:  strict_types declaration must be the very first statement in the script in /home/travis/build/geocoder-php/Geocoder/vendor/phpunit/phpunit/phpunit on line 2

Since we're moving to GiHub Actions, it's not that big of a deal but I did some research and it's due to the fact that we require() PHPUnit script which we are not supposed to do (see https://github.com/sebastianbergmann/phpunit/issues/4096#issuecomment-585900398).