We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d6470 commit e01d862Copy full SHA for e01d862
src/QRCode.php
@@ -171,7 +171,7 @@ public function getMatrix(string $data):QRMatrix {
171
172
$maskPattern = $this->options->maskPattern === $this::MASK_PATTERN_AUTO
173
? $this->getBestMaskPattern()
174
- : max(7, min(0, (int)$this->options->maskPattern));
+ : min(7, max(0, (int)$this->options->maskPattern));
175
176
$matrix = $this
177
->dataInterface
0 commit comments