From 8012990ba9f4cf41fbf696f097dbf4fd8129f464 Mon Sep 17 00:00:00 2001 From: Alessandro Petrillo Date: Thu, 5 Dec 2024 15:32:22 -0500 Subject: [PATCH] QrCode: Fixed 'Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead' deprecation warning. --- src/QrCode/QrCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QrCode/QrCode.php b/src/QrCode/QrCode.php index 765b8c5c..db6868b2 100644 --- a/src/QrCode/QrCode.php +++ b/src/QrCode/QrCode.php @@ -45,7 +45,7 @@ final class QrCode * @return self * @throws UnsupportedFileExtensionException */ - public static function create(string $data, string $fileFormat = null, array $unsupportedCharacterReplacements = []): self + public static function create(string $data, ?string $fileFormat = null, array $unsupportedCharacterReplacements = []): self { if (null === $fileFormat) { $fileFormat = self::FILE_FORMAT_SVG;