瀏覽代碼

: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,