소스 검색

:octocat: +type hints

codemasher 8 년 전
부모
커밋
de1890855d
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/Output/QRImage.php

+ 4 - 4
src/Output/QRImage.php

@@ -116,12 +116,12 @@ class QRImage extends QROutputAbstract{
 	}
 
 	/**
-	 * @param $x
-	 * @param $y
-	 * @param $color
+	 * @param int $x
+	 * @param int $y
+	 * @param int $color
 	 * @return void
 	 */
-	protected function setPixel($x, $y, $color){
+	protected function setPixel(int $x, int $y, int $color){
 		imagefilledrectangle(
 			$this->image,
 			$x * $this->scale,