From f6aaeea3eef1d39cd83592f730b68232d2691278 Mon Sep 17 00:00:00 2001 From: codemasher Date: Thu, 18 Nov 2021 08:19:04 +0100 Subject: [PATCH] :shower: phan happy --- src/Output/QRFpdf.php | 1 + src/Output/QRImage.php | 2 ++ src/QRCode.php | 1 + 3 files changed, 4 insertions(+) diff --git a/src/Output/QRFpdf.php b/src/Output/QRFpdf.php index 0f56dfeb9..a15ae9ff3 100644 --- a/src/Output/QRFpdf.php +++ b/src/Output/QRFpdf.php @@ -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; } diff --git a/src/Output/QRImage.php b/src/Output/QRImage.php index 967b4cd13..8f533d341 100644 --- a/src/Output/QRImage.php +++ b/src/Output/QRImage.php @@ -102,6 +102,7 @@ class QRImage extends QROutputAbstract{ // avoid: Indirect modification of overloaded property $imageTransparencyBG has no effect // https://stackoverflow.com/a/10455217 $tbg = $this->options->imageTransparencyBG; + /** @phan-suppress-next-line PhanParamTooFewInternalUnpack */ $background = imagecolorallocate($this->image, ...$tbg); if((bool)$this->options->imageTransparent && in_array($this->options->outputType, $this::TRANSPARENCY_TYPES, true)){ @@ -143,6 +144,7 @@ class QRImage extends QROutputAbstract{ $y * $this->scale, ($x + 1) * $this->scale, ($y + 1) * $this->scale, + /** @phan-suppress-next-line PhanParamTooFewInternalUnpack */ imagecolorallocate($this->image, ...$rgb) ); } diff --git a/src/QRCode.php b/src/QRCode.php index 11842fa17..294a20d83 100755 --- a/src/QRCode.php +++ b/src/QRCode.php @@ -240,6 +240,7 @@ class QRCode{ protected function initOutputInterface(string $data):QROutputInterface{ if($this->options->outputType === $this::OUTPUT_CUSTOM && class_exists($this->options->outputInterface)){ + /** @phan-suppress-next-line PhanTypeExpectedObjectOrClassName */ return new $this->options->outputInterface($this->options, $this->getMatrix($data)); }