diff options
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php')
-rw-r--r-- | vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php b/vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php index a706685af..a15ae9ff3 100644 --- a/vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php +++ b/vendor/chillerlan/php-qrcode/src/Output/QRFpdf.php @@ -69,7 +69,7 @@ class QRFpdf extends QROutputAbstract{ * @return string|\FPDF */ public function dump(string $file = null){ - $file = $file ?? $this->options->cachefile; + $file ??= $this->options->cachefile; $fpdf = new FPDF('P', $this->options->fpdfMeasureUnit, [$this->length, $this->length]); $fpdf->AddPage(); @@ -83,6 +83,7 @@ class QRFpdf extends QROutputAbstract{ $color = $this->moduleValues[$M_TYPE]; if($prevColor === null || $prevColor !== $color){ + /** @phan-suppress-next-line PhanParamTooFewUnpack */ $fpdf->SetFillColor(...$color); $prevColor = $color; } |