Skip to content

Add PHP 8.3 support, drop PHP < 8.2 #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.1"
- "8.2"

steps:
- uses: "actions/checkout@v4"
Expand All @@ -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:
Expand All @@ -70,7 +70,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.1"
- "8.2"

steps:
- uses: "actions/checkout@v4"
Expand All @@ -89,7 +89,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.1"
- "8.2"

steps:
- uses: "actions/checkout@v4"
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 0 additions & 6 deletions tests/ErrorHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -74,8 +72,6 @@ public function testDefaultConfiguration(): void
self::assertSame($memoryStream, $errorHandler->getErrorOutputStream());
}

#[RunInSeparateProcess]
#[PreserveGlobalState(false)]
public function testRegisterBuiltinHandlers(): void
{
$this->errorHandler->register();
Expand All @@ -87,8 +83,6 @@ public function testRegisterBuiltinHandlers(): void
$arrayPerVerificaErrori['undefined_index'];
}

#[RunInSeparateProcess]
#[PreserveGlobalState(false)]
public function testScream(): void
{
$scream = [
Expand Down