Bläddra i källkod

:octocat: add $M_TYPE to transform callback

smiley 3 år sedan
förälder
incheckning
30693561d7
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/Output/QRMarkupSVG.php

+ 2 - 2
src/Output/QRMarkupSVG.php

@@ -72,7 +72,7 @@ class QRMarkupSVG extends QRMarkup{
 	 * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path
 	 */
 	protected function paths():string{
-		$paths = $this->collectModules(fn(int $x, int $y):string => $this->module($x, $y));
+		$paths = $this->collectModules(fn(int $x, int $y, int $M_TYPE):string => $this->module($x, $y, $M_TYPE));
 		$svg   = [];
 
 		// create the path elements
@@ -123,7 +123,7 @@ class QRMarkupSVG extends QRMarkup{
 	 *
 	 * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d
 	 */
-	protected function module(int $x, int $y):string{
+	protected function module(int $x, int $y, int $M_TYPE):string{
 
 		if($this->options->imageTransparent && !$this->matrix->check($x, $y)){
 			return '';