:octocat: QROutputAbstract::collectModules(): remove Closure parameter in favor of concrete method moduleTransform()

This commit is contained in:
smiley
2025-10-09 22:41:51 +02:00
parent 5c948cffd4
commit ff729b3aba
8 changed files with 40 additions and 28 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ class QRSvgWithLogoAndCustomShapes extends QRMarkupSVG{
*
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d
*/
protected function module(int $x, int $y, int $M_TYPE):string{
protected function moduleTransform(int $x, int $y, int $M_TYPE, int $M_TYPE_LAYER):string|null{
if(
!$this->matrix->isDark($M_TYPE)
@@ -64,7 +64,7 @@ class QRSvgWithLogoAndCustomShapes extends QRMarkupSVG{
|| $this->matrix->checkType($x, $y, QRMatrix::M_FINDER)
|| $this->matrix->checkType($x, $y, QRMatrix::M_FINDER_DOT)
){
return '';
return null;
}
// return a heart shape (or any custom shape for that matter)