This commit is contained in:
codemasher
2021-01-07 11:17:51 +01:00
parent 96135bfeda
commit 4167286f65
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ final class QRMatrix{
public function setLogoSpace(int $width, int $height, int $startX = null, int $startY = null):QRMatrix{
// for logos we operate in ECC H (30%) only
if($this->eccLevel->getOrdinal() !== EccLevel::H){
if($this->eccLevel->getLevel() !== EccLevel::H){
throw new QRCodeDataException('ECC level "H" required to add logo space');
}