Parcourir la source

:wrench: fixed https://github.com/chillerlan/php-qrcode/issues/12

codemasher il y a 7 ans
Parent
commit
e01d862b9b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/QRCode.php

+ 1 - 1
src/QRCode.php

@@ -171,7 +171,7 @@ class QRCode{
 
 		$maskPattern = $this->options->maskPattern === $this::MASK_PATTERN_AUTO
 			? $this->getBestMaskPattern()
-			: max(7, min(0, (int)$this->options->maskPattern));
+			: min(7, max(0, (int)$this->options->maskPattern));
 
 		$matrix = $this
 			->dataInterface