浏览代码

:shower: phan happy

codemasher 4 年之前
父节点
当前提交
f6aaeea3ee
共有 3 个文件被更改,包括 4 次插入0 次删除
  1. 1 0
      src/Output/QRFpdf.php
  2. 2 0
      src/Output/QRImage.php
  3. 1 0
      src/QRCode.php

+ 1 - 0
src/Output/QRFpdf.php

@@ -83,6 +83,7 @@ class QRFpdf extends QROutputAbstract{
 				$color = $this->moduleValues[$M_TYPE];
 				$color = $this->moduleValues[$M_TYPE];
 
 
 				if($prevColor === null || $prevColor !== $color){
 				if($prevColor === null || $prevColor !== $color){
+					/** @phan-suppress-next-line PhanParamTooFewUnpack */
 					$fpdf->SetFillColor(...$color);
 					$fpdf->SetFillColor(...$color);
 					$prevColor = $color;
 					$prevColor = $color;
 				}
 				}

+ 2 - 0
src/Output/QRImage.php

@@ -102,6 +102,7 @@ class QRImage extends QROutputAbstract{
 		// avoid: Indirect modification of overloaded property $imageTransparencyBG has no effect
 		// avoid: Indirect modification of overloaded property $imageTransparencyBG has no effect
 		// https://stackoverflow.com/a/10455217
 		// https://stackoverflow.com/a/10455217
 		$tbg        = $this->options->imageTransparencyBG;
 		$tbg        = $this->options->imageTransparencyBG;
+		/** @phan-suppress-next-line PhanParamTooFewInternalUnpack */
 		$background = imagecolorallocate($this->image, ...$tbg);
 		$background = imagecolorallocate($this->image, ...$tbg);
 
 
 		if((bool)$this->options->imageTransparent && in_array($this->options->outputType, $this::TRANSPARENCY_TYPES, true)){
 		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,
 			$y * $this->scale,
 			($x + 1) * $this->scale,
 			($x + 1) * $this->scale,
 			($y + 1) * $this->scale,
 			($y + 1) * $this->scale,
+			/** @phan-suppress-next-line PhanParamTooFewInternalUnpack */
 			imagecolorallocate($this->image, ...$rgb)
 			imagecolorallocate($this->image, ...$rgb)
 		);
 		);
 	}
 	}

+ 1 - 0
src/QRCode.php

@@ -240,6 +240,7 @@ class QRCode{
 	protected function initOutputInterface(string $data):QROutputInterface{
 	protected function initOutputInterface(string $data):QROutputInterface{
 
 
 		if($this->options->outputType === $this::OUTPUT_CUSTOM && class_exists($this->options->outputInterface)){
 		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));
 			return new $this->options->outputInterface($this->options, $this->getMatrix($data));
 		}
 		}