@@ -115,7 +115,7 @@ |
||
115 | 115 | public function dump(string $file = null){ |
116 | 116 | // call the built-in output method |
117 | 117 | $data = call_user_func([$this, $this->outputMode ?? $this->defaultMode]); |
118 | - $file ??= $this->options->cachefile; |
|
118 | + $file ?? = $this->options->cachefile; |
|
119 | 119 | |
120 | 120 | if($file !== null){ |
121 | 121 | $this->saveToFile($data, $file); |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * @inheritDoc |
48 | 48 | */ |
49 | 49 | public function dump(string $file = null):string{ |
50 | - $file ??= $this->options->cachefile; |
|
50 | + $file ?? = $this->options->cachefile; |
|
51 | 51 | $imagick = new Imagick; |
52 | 52 | |
53 | 53 | $imagick->newImage( |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | // avoid: Indirect modification of overloaded property $imageTransparencyBG has no effect |
70 | 70 | // https://stackoverflow.com/a/10455217 |
71 | 71 | $tbg = $this->options->imageTransparencyBG; |
72 | - $background = imagecolorallocate($this->image, ...$tbg); |
|
72 | + $background = imagecolorallocate($this->image, ...$tbg); |
|
73 | 73 | |
74 | 74 | if((bool)$this->options->imageTransparent && in_array($this->options->outputType, $this::TRANSPARENCY_TYPES, true)){ |
75 | 75 | imagecolortransparent($this->image, $background); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * @throws \chillerlan\QRCode\Output\QRCodeOutputException |
115 | 115 | */ |
116 | 116 | protected function dumpImage(string $file = null):string{ |
117 | - $file ??= $this->options->cachefile; |
|
117 | + $file ?? = $this->options->cachefile; |
|
118 | 118 | |
119 | 119 | ob_start(); |
120 | 120 |
@@ -193,7 +193,7 @@ |
||
193 | 193 | * HTML, IMAGICK: #ABCDEF, cssname, rgb(), rgba()... |
194 | 194 | * IMAGE: [63, 127, 255] // R, G, B |
195 | 195 | */ |
196 | - protected ?array $moduleValues = null; |
|
196 | + protected ? array $moduleValues = null; |
|
197 | 197 | |
198 | 198 | /** |
199 | 199 | * clamp min/max version number |
@@ -109,7 +109,7 @@ |
||
109 | 109 | |
110 | 110 | if($count > 0){ |
111 | 111 | $len = $count; |
112 | - $start ??= 0; // avoid type coercion in sprintf() - phan happy |
|
112 | + $start ?? = 0; // avoid type coercion in sprintf() - phan happy |
|
113 | 113 | |
114 | 114 | $path .= sprintf('M%s %s h%s v1 h-%sZ ', $start, $y, $len, $len); |
115 | 115 |