From cd5d8029eeaf6225b9ff4692364c4c473191e487 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Wed, 25 Dec 2024 10:47:45 +0000 Subject: [PATCH] Fix PHP 8.4 deprecation --- src/Type/Square/QrCode/SpecRs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Type/Square/QrCode/SpecRs.php b/src/Type/Square/QrCode/SpecRs.php index 232ac77..45d6d11 100644 --- a/src/Type/Square/QrCode/SpecRs.php +++ b/src/Type/Square/QrCode/SpecRs.php @@ -220,7 +220,7 @@ public function createFrame(int $version): array * @param int $xpos X position * @param int $ypos Y position * @param string $repl Value to replace - * @param int $replLen Length of the repl string + * @param int|null $replLen Length of the repl string * * @return array srctab */ @@ -229,7 +229,7 @@ public function qrstrset( int $xpos, int $ypos, string $repl, - int $replLen = null + ?int $replLen = null ): array { $srctab[$ypos] = substr_replace( $srctab[$ypos],