Explorar el Código

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

codemasher hace 7 años
padre
commit
e01d862b9b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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