Skip to content

Commit

Permalink
Merge pull request #9 from sirn-se/php-8
Browse files Browse the repository at this point in the history
Php 8
  • Loading branch information
sirn-se committed Dec 16, 2020
2 parents 656f0b9 + 73955ab commit c2bd3c4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: php

php:
- 8.0
- 7.4
- 7.3
- 7.2
Expand All @@ -10,4 +11,5 @@ before_script:
- make deps-install

script:
- make coverage cs-check
- make coverage
- make cs-check
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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 |
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit c2bd3c4

Please sign in to comment.