Ver Fonte

:shower: phan happy

codemasher há 5 anos atrás
pai
commit
71053ee0f1
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      src/Output/QRMarkup.php

+ 3 - 1
src/Output/QRMarkup.php

@@ -108,7 +108,9 @@ class QRMarkup extends QROutputAbstract{
 					}
 
 					if($count > 0){
-						$len = $count;
+						$len   = $count;
+						$start ??= 0; // avoid type coercion in sprintf() - phan happy
+
 						$path .= sprintf('M%s %s h%s v1 h-%sZ ', $start, $y, $len, $len);
 
 						// reset count