:octocat: QRMatrix: ignore logo w/h 0, throw on invalid dimensions

This commit is contained in:
codemasher
2021-12-08 16:36:17 +01:00
parent ae69a5ae6c
commit 1aee1e90ca
2 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ final class QRMatrixTest extends TestCase{
$o->version = 5;
$o->eccLevel = EccLevel::H;
(new QRCode($o))->addByteSegment('testdata')->getMatrix()->setLogoSpace(50, 50);
(new QRCode($o))->addByteSegment('testdata')->getMatrix()->setLogoSpace(37, 37);
}
/**