Skip to content

Commit 3069356

Browse files
committed
:octocat: add $M_TYPE to transform callback
1 parent 8512460 commit 3069356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Output/QRMarkupSVG.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function header():string{
7272
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path
7373
*/
7474
protected function paths():string{
75-
$paths = $this->collectModules(fn(int $x, int $y):string => $this->module($x, $y));
75+
$paths = $this->collectModules(fn(int $x, int $y, int $M_TYPE):string => $this->module($x, $y, $M_TYPE));
7676
$svg = [];
7777

7878
// create the path elements
@@ -123,7 +123,7 @@ protected function getCssClass(int $M_TYPE):string{
123123
*
124124
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d
125125
*/
126-
protected function module(int $x, int $y):string{
126+
protected function module(int $x, int $y, int $M_TYPE):string{
127127

128128
if($this->options->imageTransparent && !$this->matrix->check($x, $y)){
129129
return '';

0 commit comments

Comments
 (0)