@@ -208,7 +208,7 @@ public static function fromBlank(int $width, int $height, array $color = null)
208208
209209 /**
210210 * Wraps GD image.
211- * @param resource
211+ * @param resource $image
212212 */
213213 public function __construct ($ image )
214214 {
@@ -237,7 +237,7 @@ public function getHeight(): int
237237
238238 /**
239239 * Sets image resource.
240- * @param resource
240+ * @param resource $image
241241 * @return static
242242 */
243243 protected function setImageResource ($ image )
@@ -262,8 +262,8 @@ public function getImageResource()
262262
263263 /**
264264 * Resizes image.
265- * @param mixed width in pixels or percent
266- * @param mixed height in pixels or percent
265+ * @param int|string $ width in pixels or percent
266+ * @param int|string $ height in pixels or percent
267267 * @return static
268268 */
269269 public function resize ($ width , $ height , int $ flags = self ::FIT )
@@ -293,8 +293,8 @@ public function resize($width, $height, int $flags = self::FIT)
293293
294294 /**
295295 * Calculates dimensions of resized image.
296- * @param mixed $newWidth in pixels or percent
297- * @param mixed $newHeight in pixels or percent
296+ * @param int|string $newWidth in pixels or percent
297+ * @param int|string $newHeight in pixels or percent
298298 */
299299 public static function calculateSize (int $ srcWidth , int $ srcHeight , $ newWidth , $ newHeight , int $ flags = self ::FIT ): array
300300 {
@@ -355,10 +355,10 @@ public static function calculateSize(int $srcWidth, int $srcHeight, $newWidth, $
355355
356356 /**
357357 * Crops image.
358- * @param mixed x-offset in pixels or percent
359- * @param mixed y-offset in pixels or percent
360- * @param mixed width in pixels or percent
361- * @param mixed height in pixels or percent
358+ * @param int|string $left in pixels or percent
359+ * @param int|string $top in pixels or percent
360+ * @param int|string $ width in pixels or percent
361+ * @param int|string $ height in pixels or percent
362362 * @return static
363363 */
364364 public function crop ($ left , $ top , $ width , $ height )
@@ -372,12 +372,10 @@ public function crop($left, $top, $width, $height)
372372
373373 /**
374374 * Calculates dimensions of cutout in image.
375- * @param int
376- * @param int
377- * @param mixed x-offset in pixels or percent
378- * @param mixed y-offset in pixels or percent
379- * @param mixed width in pixels or percent
380- * @param mixed height in pixels or percent
375+ * @param int|string $left in pixels or percent
376+ * @param int|string $top in pixels or percent
377+ * @param int|string $newWidth in pixels or percent
378+ * @param int|string $newHeight in pixels or percent
381379 */
382380 public static function calculateCutout (int $ srcWidth , int $ srcHeight , $ left , $ top , $ newWidth , $ newHeight ): array
383381 {
@@ -424,10 +422,9 @@ public function sharpen()
424422
425423 /**
426424 * Puts another image into this image.
427- * @param Image
428- * @param mixed x-coordinate in pixels or percent
429- * @param mixed y-coordinate in pixels or percent
430- * @param int opacity 0..100
425+ * @param int|string $left in pixels or percent
426+ * @param int|string $top in pixels or percent
427+ * @param int $opacity 0..100
431428 * @return static
432429 */
433430 public function place (self $ image , $ left = 0 , $ top = 0 , int $ opacity = 100 )
0 commit comments