Skip to content

Commit 3f2a8fe

Browse files
authored
Fix PHP 8.4 deprecation warning + test newer PHP versions (#9)
1 parent 9738e2e commit 3f2a8fe

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88

99
strategy:
1010
matrix:
11-
php: [8.0, 8.1]
11+
php: [8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6]
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v7
1616

1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2

‎src/Codeception/Util/sq.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Codeception\Module\Sequence;
66

7-
function sq(int|string $id = null): string
7+
function sq(int|string|null $id = null): string
88
{
99
if ($id && isset(Sequence::$hash[$id])) {
1010
return Sequence::$hash[$id];
@@ -19,7 +19,7 @@ function sq(int|string $id = null): string
1919
return $sequence;
2020
}
2121

22-
function sqs(int|string $id = null): string
22+
function sqs(int|string|null $id = null): string
2323
{
2424
if ($id && isset(Sequence::$suiteHash[$id])) {
2525
return Sequence::$suiteHash[$id];

‎tests/unit.suite.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
error_level: "E_ALL | E_STRICT"
1+
error_level: "E_ALL"
22
class_name: UnitTester

0 commit comments

Comments
 (0)