diff --git a/.travis.yml b/.travis.yml index c867c81..51f485a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: php php: + - 8.0 - 7.4 - 7.3 - 7.2 @@ -10,4 +11,5 @@ before_script: - make deps-install script: - - make coverage cs-check \ No newline at end of file + - make coverage + - make cs-check diff --git a/Makefile b/Makefile index 2c3dc5b..b97dcbd 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ test: composer.lock # Run tests with clover coverage report coverage: composer.lock - ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml + XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml ./vendor/bin/php-coveralls -v diff --git a/README.md b/README.md index 36ae37d..d4f2434 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -[![Build Status](https://travis-ci.org/sirn-se/phrity-comparison.svg?branch=master)](https://travis-ci.org/sirn-se/phrity-comparison) +[![Build Status](https://travis-ci.com/sirn-se/phrity-comparison.svg?branch=master)](https://travis-ci.com/sirn-se/phrity-comparison) [![Coverage Status](https://coveralls.io/repos/github/sirn-se/phrity-comparison/badge.svg?branch=master)](https://coveralls.io/github/sirn-se/phrity-comparison?branch=master) # Comparison Interfaces and helper trait for comparing objects. Comparator utility class for sort and filter applications. -Current version supports PHP `^7.1`. +Current version supports PHP `^7.1|^8.0`. ## Installation @@ -168,8 +168,12 @@ class Phrity\Comparison\IncomparableException } ``` + ## Versions -* `1.2` - The `Comparator` supports stored content for multiple operations (PHP ^7.1) -* `1.1` - The `Comparator` class for sort and filter (PHP 5.6|^7.0) -* `1.0` - `Equalable` and `Comparable` interface, `ComparisonTrait` trait (PHP 5.6|^7.0) +| Version | PHP | | +| --- | --- | --- | +| `1.3` | `^7.1\|^8.0` | | +| `1.2` | `^7.1` | The `Comparator` supports stored content for multiple operations | +| `1.1` | `>=5.6` | The `Comparator` class for sort and filter | +| `1.0` | `>=5.6` | `Equalable` and `Comparable` interface, `ComparisonTrait` trait | diff --git a/composer.json b/composer.json index 4b001ba..b052f7c 100644 --- a/composer.json +++ b/composer.json @@ -23,11 +23,11 @@ } }, "require": { - "php": "^7.1" + "php": "^7.1|^8.0" }, "require-dev": { - "phpunit/phpunit": "^7.0|^8.0", - "php-coveralls/php-coveralls": "2.*", - "squizlabs/php_codesniffer": "3.*" + "phpunit/phpunit": "^7.0|^8.0|^9.0", + "php-coveralls/php-coveralls": "^2.0", + "squizlabs/php_codesniffer": "^3.5" } }