diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32742eb..4e4ee4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: php-version: - - "8.1" + - "8.2" steps: - uses: "actions/checkout@v4" @@ -40,11 +40,11 @@ jobs: strategy: matrix: php-version: - - "8.2" + - "8.3" code-coverage: - "none" include: - - php-version: "8.1" + - php-version: "8.2" code-coverage: "pcov" steps: @@ -70,7 +70,7 @@ jobs: strategy: matrix: php-version: - - "8.1" + - "8.2" steps: - uses: "actions/checkout@v4" @@ -89,7 +89,7 @@ jobs: strategy: matrix: php-version: - - "8.1" + - "8.2" steps: - uses: "actions/checkout@v4" diff --git a/composer.json b/composer.json index b5f4708..84b21b9 100644 --- a/composer.json +++ b/composer.json @@ -11,15 +11,14 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0" + "php": "~8.2.0 || ~8.3.0" }, "require-dev": { - "phpstan/phpstan": "^1.10.42", + "phpstan/phpstan": "^1.10.44", "phpstan/phpstan-phpunit": "^1.3.15", "phpstan/phpstan-strict-rules": "^1.5.2", "phpunit/phpunit": "^10.4.2", - "slam/php-cs-fixer-extensions": "^3.9", - "slam/php-debug-r": "^1.8.1", + "slam/php-cs-fixer-extensions": "^3.10", "symfony/console": "^6.3.8" }, "autoload": { diff --git a/tests/ErrorHandlerTest.php b/tests/ErrorHandlerTest.php index cc305f4..b2a03c4 100644 --- a/tests/ErrorHandlerTest.php +++ b/tests/ErrorHandlerTest.php @@ -5,8 +5,6 @@ namespace SlamTest\ErrorHandler; use ErrorException; -use PHPUnit\Framework\Attributes\PreserveGlobalState; -use PHPUnit\Framework\Attributes\RunInSeparateProcess; use PHPUnit\Framework\TestCase; use RuntimeException; use Slam\ErrorHandler\ErrorHandler; @@ -74,8 +72,6 @@ public function testDefaultConfiguration(): void self::assertSame($memoryStream, $errorHandler->getErrorOutputStream()); } - #[RunInSeparateProcess] - #[PreserveGlobalState(false)] public function testRegisterBuiltinHandlers(): void { $this->errorHandler->register(); @@ -87,8 +83,6 @@ public function testRegisterBuiltinHandlers(): void $arrayPerVerificaErrori['undefined_index']; } - #[RunInSeparateProcess] - #[PreserveGlobalState(false)] public function testScream(): void { $scream = [