This commit is contained in:
codemasher
2018-03-10 16:31:30 +01:00
parent e5d6470f3e
commit e01d862b9b
+1 -1
View File
@@ -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