Skip to content

Commit ea22aa0

Browse files
authored
Drop PHP < 7.4 and PHPUnit < 9 (#32)
1 parent c0d5054 commit ea22aa0

File tree

6 files changed

+5
-197
lines changed

6 files changed

+5
-197
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v6
1212
- uses: shivammathur/setup-php@v2
1313
with:
14-
php-version: '8.1'
14+
php-version: '8.5'
1515
coverage: none
1616
- run: composer update --no-progress
1717
- run: composer update --no-progress --working-dir=dev-tools
@@ -28,12 +28,8 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
include:
31-
- php-version: '7.0'
32-
composer-flags: '--prefer-stable --prefer-lowest'
33-
- php-version: '7.1'
34-
- php-version: '7.2'
35-
- php-version: '7.3'
3631
- php-version: '7.4'
32+
composer-flags: '--prefer-stable --prefer-lowest'
3733
- php-version: '8.0'
3834
- php-version: '8.1'
3935
- php-version: '8.2'

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.0 || ^8.0",
14-
"phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7 || ^12.0.2 || ^13.0.0"
13+
"php": "^7.4 || ^8.0",
14+
"phpunit/phpunit": "^9.6.34 || ^10.5.53 || ^11.5.55 || ^12.5.14 || ^13.0.5"
1515
},
1616
"autoload": {
1717
"psr-4": {

src/Constraint/IsIdenticalString.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,4 @@
1313

1414
use PHPUnit\Runner\Version;
1515

16-
if (version_compare(Version::id(), '7.0.0') < 0) {
17-
class_alias(IsIdenticalStringForV5::class, IsIdenticalString::class);
18-
} elseif (version_compare(Version::id(), '8.0.0') < 0) {
19-
class_alias(IsIdenticalStringForV7::class, IsIdenticalString::class);
20-
} elseif (version_compare(Version::id(), '9.0.0') < 0) {
21-
class_alias(IsIdenticalStringForV8::class, IsIdenticalString::class);
22-
} else {
23-
class_alias(IsIdenticalStringForV9::class, IsIdenticalString::class);
24-
}
16+
class_alias(IsIdenticalStringForV9::class, IsIdenticalString::class);

src/Constraint/IsIdenticalStringForV5.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/Constraint/IsIdenticalStringForV7.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/Constraint/IsIdenticalStringForV8.php

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)