influxdata / influxdb-php

influxdb-php: A PHP Client for InfluxDB, a time series database
http://influxdb.com
MIT License
432 stars 125 forks source link

Add support for PHP 8 #157

Closed zorac closed 3 years ago

zorac commented 3 years ago

This adds 8.0 to the supported versions in composer.json. No client code updates appear to be required.

This also upgrades to PHPUnit 9.5, which is the lowest version supporting both tests and code coverage on PHP 8, and adds a plugin to provide an assertion which was removed from the base project. The configuration file and tests have been updated to replace deprecations and now pass cleanly. The Travis config was also updated to test on PHP 7.3-8.0, the versions supported by PHPUnit 9.

pvsaintpe commented 3 years ago

Greetings dear authors/contributors,

@thecodeassassin, @danibrutal, @andreyvital, @Nyholm, and more ...

I appeal to those who can merge, please, push this pull request to the master.

I really need support for PHP 8.0, and I really don't want to fork and insert crutches into my project.

Thank you in advance.