From 7e0ff4e1c4c287fa4273745733a62102b71ff73c Mon Sep 17 00:00:00 2001 From: Dnyaneshwar Jambhulkar Date: Tue, 17 Dec 2024 13:39:48 +0530 Subject: [PATCH 1/4] Explicit nullable type added with PHP 8.4 support --- src/Codeception/Util/sq.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Codeception/Util/sq.php b/src/Codeception/Util/sq.php index 3f8a289..d03a564 100644 --- a/src/Codeception/Util/sq.php +++ b/src/Codeception/Util/sq.php @@ -4,7 +4,7 @@ use Codeception\Module\Sequence; -function sq(int|string $id = null): string +function sq(int|string|null $id = null): string { if ($id && isset(Sequence::$hash[$id])) { return Sequence::$hash[$id]; @@ -19,7 +19,7 @@ function sq(int|string $id = null): string return $sequence; } -function sqs(int|string $id = null): string +function sqs(int|string|null $id = null): string { if ($id && isset(Sequence::$suiteHash[$id])) { return Sequence::$suiteHash[$id]; From 32aac1452939282d57a8ca40279e1ee008a77527 Mon Sep 17 00:00:00 2001 From: W0rma Date: Thu, 19 Nov 2026 16:01:59 +0100 Subject: [PATCH 2/4] Bump actions/checkout version --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 91c9599..09b7148 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v7 - name: Setup PHP uses: shivammathur/setup-php@v2 From 49d14086740799b57a6851b94bb82591f0b395a7 Mon Sep 17 00:00:00 2001 From: W0rma Date: Thu, 19 Nov 2026 16:02:24 +0100 Subject: [PATCH 3/4] Test latest PHP versions --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 09b7148..3025633 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - php: [8.0, 8.1] + php: [8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6] steps: - name: Checkout code From 12eafd35624849c14f5c25f821f3e7425818ba5e Mon Sep 17 00:00:00 2001 From: W0rma Date: Fri, 20 Nov 2026 14:26:03 +0100 Subject: [PATCH 4/4] Drop noop error level --- tests/unit.suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit.suite.yml b/tests/unit.suite.yml index dc82ae8..5f0213b 100644 --- a/tests/unit.suite.yml +++ b/tests/unit.suite.yml @@ -1,2 +1,2 @@ -error_level: "E_ALL | E_STRICT" +error_level: "E_ALL" class_name: UnitTester