Skip to content

Commit d85667b

Browse files
authored
Add PHP 8.3 support, drop PHP < 8.2 (#37)
1 parent a41e155 commit d85667b

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
php-version:
20-
- "8.1"
20+
- "8.2"
2121

2222
steps:
2323
- uses: "actions/checkout@v4"
@@ -40,11 +40,11 @@ jobs:
4040
strategy:
4141
matrix:
4242
php-version:
43-
- "8.2"
43+
- "8.3"
4444
code-coverage:
4545
- "none"
4646
include:
47-
- php-version: "8.1"
47+
- php-version: "8.2"
4848
code-coverage: "pcov"
4949

5050
steps:
@@ -70,7 +70,7 @@ jobs:
7070
strategy:
7171
matrix:
7272
php-version:
73-
- "8.1"
73+
- "8.2"
7474

7575
steps:
7676
- uses: "actions/checkout@v4"
@@ -89,7 +89,7 @@ jobs:
8989
strategy:
9090
matrix:
9191
php-version:
92-
- "8.1"
92+
- "8.2"
9393

9494
steps:
9595
- uses: "actions/checkout@v4"

composer.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@
1111
}
1212
],
1313
"require": {
14-
"php": "~8.1.0 || ~8.2.0"
14+
"php": "~8.2.0 || ~8.3.0"
1515
},
1616
"require-dev": {
17-
"phpstan/phpstan": "^1.10.42",
17+
"phpstan/phpstan": "^1.10.44",
1818
"phpstan/phpstan-phpunit": "^1.3.15",
1919
"phpstan/phpstan-strict-rules": "^1.5.2",
2020
"phpunit/phpunit": "^10.4.2",
21-
"slam/php-cs-fixer-extensions": "^3.9",
22-
"slam/php-debug-r": "^1.8.1",
21+
"slam/php-cs-fixer-extensions": "^3.10",
2322
"symfony/console": "^6.3.8"
2423
},
2524
"autoload": {

tests/ErrorHandlerTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
namespace SlamTest\ErrorHandler;
66

77
use ErrorException;
8-
use PHPUnit\Framework\Attributes\PreserveGlobalState;
9-
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
108
use PHPUnit\Framework\TestCase;
119
use RuntimeException;
1210
use Slam\ErrorHandler\ErrorHandler;
@@ -74,8 +72,6 @@ public function testDefaultConfiguration(): void
7472
self::assertSame($memoryStream, $errorHandler->getErrorOutputStream());
7573
}
7674

77-
#[RunInSeparateProcess]
78-
#[PreserveGlobalState(false)]
7975
public function testRegisterBuiltinHandlers(): void
8076
{
8177
$this->errorHandler->register();
@@ -87,8 +83,6 @@ public function testRegisterBuiltinHandlers(): void
8783
$arrayPerVerificaErrori['undefined_index'];
8884
}
8985

90-
#[RunInSeparateProcess]
91-
#[PreserveGlobalState(false)]
9286
public function testScream(): void
9387
{
9488
$scream = [

0 commit comments

Comments
 (0)