Skip to content

Commit edda30c

Browse files
committed
Add full PHP 8 support, remove PHP 7 compatibility
1 parent bd1b3ec commit edda30c

7 files changed

Lines changed: 655 additions & 811 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: php
22
php:
3-
- 7.4.9
3+
- 8.1.16
44
before_script:
55
- composer install --no-interaction
66
script:
77
- ./vendor/bin/phpunit --configuration phpunit.xml.dist
8-
- ./vendor/bin/psalm
8+
- ./vendor/bin/psalm

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Copyright (c) 2020-2021 Michael Berger
1+
Copyright (c) 2020-2023 Michael Berger
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

55
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66

7-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Reduce lines of code with this expectations library. Use expectations for condit
88

99
### Requirements
1010

11-
PHP 7.4+
11+
PHP 8
1212

1313
### Usage examples
1414

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "aedon/php-expectations",
33
"license": "MIT",
44
"require": {
5-
"php": ">=7.4|>=8.0"
5+
"php": "^8.0"
66
},
77
"require-dev": {
88
"phpunit/phpunit": "^9.5",
9-
"vimeo/psalm": "^4.10.0",
10-
"mikey179/vfsstream": "^1.6.8"
9+
"vimeo/psalm": "^5.8",
10+
"mikey179/vfsstream": "^1.6"
1111
},
1212
"autoload": {
1313
"psr-4": {
@@ -23,4 +23,4 @@
2323
"analyse": "./vendor/bin/psalm",
2424
"test": "./vendor/bin/phpunit --testdox"
2525
}
26-
}
26+
}

0 commit comments

Comments
 (0)