Browse Source

:octocat: +type hints

codemasher 8 năm trước cách đây
mục cha
commit
de1890855d
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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,