Skip to content

Commit 6bb329a

Browse files
authored
Drop PHP < 7.4 and PHPUnit < 9 (#33)
1 parent 286fab7 commit 6bb329a

File tree

6 files changed

+6
-282
lines changed

6 files changed

+6
-282
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
@@ -13,10 +13,10 @@
1313
}
1414
],
1515
"require": {
16-
"php": "^7.0 || ^8.0",
16+
"php": "^7.4 || ^8.0",
1717
"ext-dom": "*",
1818
"ext-libxml": "*",
19-
"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"
19+
"phpunit/phpunit": "^9.6.34 || ^10.5.53 || ^11.5.55 || ^12.5.14 || ^13.0.5"
2020
},
2121
"autoload": {
2222
"psr-4": {

src/Constraint/XmlMatchesXsd.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,4 @@
1414

1515
use PHPUnit\Runner\Version;
1616

17-
if (version_compare(Version::id(), '7.0.0') < 0) {
18-
class_alias(XmlMatchesXsdForV5::class, XmlMatchesXsd::class);
19-
} elseif (version_compare(Version::id(), '8.0.0') < 0) {
20-
class_alias(XmlMatchesXsdForV7::class, XmlMatchesXsd::class);
21-
} else {
22-
class_alias(XmlMatchesXsdForV8::class, XmlMatchesXsd::class);
23-
}
17+
class_alias(XmlMatchesXsdForV9::class, XmlMatchesXsd::class);

src/Constraint/XmlMatchesXsdForV5.php

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

src/Constraint/XmlMatchesXsdForV7.php

Lines changed: 0 additions & 131 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* @internal
2121
*/
22-
final class XmlMatchesXsdForV8 extends Constraint
22+
final class XmlMatchesXsdForV9 extends Constraint
2323
{
2424
/**
2525
* @var string[]

0 commit comments

Comments
 (0)