@@ -60,13 +60,14 @@ public function getHeight()
6060 * This method is intended for decoding 1D barcodes and may choose to apply sharpening.
6161 *
6262 * @param $y The row to fetch, which must be in [0, bitmap height)
63- * @param An $row optional preallocated array. If null or too small, it will be ignored.
63+ * @param array|null $row An optional preallocated array. If null or too small, it will be ignored.
6464 * If used, the Binarizer will call BitArray.clear(). Always use the returned object.
6565 *
66- * @return array The array of bits for this row (true means black).
66+ * @return Common\BitArray The array of bits for this row (true means black).
67+ *
6768 * @throws NotFoundException if row can't be binarized
6869 */
69- public function getBlackRow ($ y , $ row )
70+ public function getBlackRow ($ y , $ row ): Common \ BitArray
7071 {
7172 return $ this ->binarizer ->getBlackRow ($ y , $ row );
7273 }
@@ -98,7 +99,7 @@ public function crop($left, $top, $width, $height): \Zxing\BinaryBitmap
9899 }
99100
100101 /**
101- * @return Whether this bitmap supports counter-clockwise rotation.
102+ * @return bool this Whether bitmap supports counter-clockwise rotation.
102103 */
103104 public function isRotateSupported ()
104105 {
@@ -131,7 +132,7 @@ public function rotateCounterClockwise45(): \Zxing\BinaryBitmap
131132 return new BinaryBitmap ($ this ->binarizer ->createBinarizer ($ newSource ));
132133 }
133134
134- public function toString ()
135+ public function toString (): string
135136 {
136137 try {
137138 return $ this ->getBlackMatrix ()->toString ();
0 commit comments