Skip to content

Commit d4c027b

Browse files
committed
feat: req php 8.3+ and bump php-ds/tests to ^1.6
1 parent 6d0d399 commit d4c027b

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
php:
18-
- "7.4"
19-
- "8.0"
20-
- "8.1"
21-
- "8.2"
2218
- "8.3"
2319
- "8.4"
2420
phpts: ["ts", "nts"]

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
],
1313
"minimum-stability": "dev",
1414
"require": {
15-
"php": ">= 7.4.0"
15+
"php": "^8.3"
1616
},
1717
"require-dev": {
18-
"php-ds/tests": "^1.5"
18+
"php-ds/tests": "^1.6"
1919
},
2020
"scripts": {
2121
"test" : "php test.php",

package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
<dependencies>
154154
<required>
155155
<php>
156-
<min>7.4.0</min>
156+
<min>8.3.0</min>
157157
</php>
158158
<pearinstaller>
159159
<min>1.4.0b1</min>

test.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
}
1717
}
1818

19-
// So that PHPUnit doesn't use "exit"
20-
$status = \PHPUnit\TextUI\Command::main(false);
19+
// Run PHPUnit without letting it call exit() itself
20+
$application = new \PHPUnit\TextUI\Application();
21+
$status = $application->run($_SERVER['argv']);
2122

2223
// Attempt to collect anything left over from the tests.
2324
gc_collect_cycles();

0 commit comments

Comments
 (0)