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;