PHP 7.2+ Support

* Updated the composer.json to require PHP 7.2, removed Travis CI tests for all PHP versions prior to 7.2 and replace jimdo/prometheus_client_php with endclothing/prometheus_client_php to support PHP 7.2.

* Updated PHPUnit to v8 and Mockery to v1.4 in order to support PHP 7.4.

* Downgraded Mockery from 1.4 to 1.3 in order to support PHP versions < 7.3.
This commit is contained in:
FutureMatt 2020-09-11 15:48:24 +01:00 committed by GitHub
parent 6e874128e8
commit 4e1e6e0940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 8 deletions

View file

@ -1,11 +1,9 @@
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
before_install:
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

View file

@ -9,10 +9,10 @@
}
],
"require": {
"php": ">=5.6.0",
"php": ">=7.2.0",
"illuminate/support": "^5.3 || ^6.0 || ^7.0",
"illuminate/routing": "^5.3 || ^6.0 || ^7.0",
"jimdo/prometheus_client_php": "^0.9.0"
"endclothing/prometheus_client_php": "^1.0"
},
"autoload": {
"psr-4": {
@ -34,7 +34,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^5.5",
"mockery/mockery": "^0.9.5"
"phpunit/phpunit": "^8",
"mockery/mockery": "^1.3"
}
}

View file

@ -8,7 +8,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="true"
verbose="true"
>
<testsuites>