From 47df102210a4666effaed2f08c17a833aadd9418 Mon Sep 17 00:00:00 2001 From: Dnyaneshwar Jambhulkar Date: Tue, 17 Dec 2024 13:39:48 +0530 Subject: [PATCH] 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];