Skip to content

Commit e01d862

Browse files
committed
🔧 fixed #12
1 parent e5d6470 commit e01d862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QRCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function getMatrix(string $data):QRMatrix {
171171

172172
$maskPattern = $this->options->maskPattern === $this::MASK_PATTERN_AUTO
173173
? $this->getBestMaskPattern()
174-
: max(7, min(0, (int)$this->options->maskPattern));
174+
: min(7, max(0, (int)$this->options->maskPattern));
175175

176176
$matrix = $this
177177
->dataInterface

0 commit comments

Comments
 (0)