Selaa lähdekoodia

:wrench: changed $dataModeOverride default value to '', fix for https://github.com/chillerlan/php-qrcode/issues/97

codemasher 4 vuotta sitten
vanhempi
commit
6356b24694
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/QROptionsTrait.php

+ 2 - 1
src/QROptionsTrait.php

@@ -77,8 +77,9 @@ trait QROptionsTrait{
 	 * valid modes are: Number, AlphaNum, Kanji, Byte (case insensitive)
 	 * 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/39
+     * @see https://github.com/chillerlan/php-qrcode/issues/97 (changed default value to '')
 	 */
 	 */
-	protected ?string $dataModeOverride = null;
+	protected string $dataModeOverride = '';
 
 
 	/**
 	/**
 	 * The output type
 	 * The output type