From 6356b246948ac1025882b3f55e7c68ebd4515ae3 Mon Sep 17 00:00:00 2001 From: codemasher Date: Thu, 25 Nov 2021 23:38:09 +0100 Subject: [PATCH] :wrench: changed $dataModeOverride default value to '', fix for https://github.com/chillerlan/php-qrcode/issues/97 --- src/QROptionsTrait.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/QROptionsTrait.php b/src/QROptionsTrait.php index 5ce144aba..74c384b13 100644 --- a/src/QROptionsTrait.php +++ b/src/QROptionsTrait.php @@ -77,8 +77,9 @@ trait QROptionsTrait{ * valid modes are: Number, AlphaNum, Kanji, Byte (case insensitive) * * @see https://github.com/chillerlan/php-qrcode/issues/39 + * @see https://github.com/chillerlan/php-qrcode/issues/97 (changed default value to '') */ - protected ?string $dataModeOverride = null; + protected string $dataModeOverride = ''; /** * The output type