From 7faa152212ddb6b117007dea05e49e8ab6bd78fd Mon Sep 17 00:00:00 2001 From: Constantine Nathanson <35217733+const-cloudinary@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:29:11 +0200 Subject: [PATCH] Fix common aliases parameter types --- .../Resize/TransformationResizeTrait.php | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Transformation/Resize/TransformationResizeTrait.php b/src/Transformation/Resize/TransformationResizeTrait.php index 07c13f5..ccd29ff 100644 --- a/src/Transformation/Resize/TransformationResizeTrait.php +++ b/src/Transformation/Resize/TransformationResizeTrait.php @@ -34,9 +34,9 @@ public function resize(BaseResizeAction $resize): static * Change the size of the image exactly to the given width and height without necessarily retaining the original * aspect ratio: all original image parts are visible but might be stretched or shrunk. * - * @param int|float|string|null $width The required width of a transformed asset. - * @param int|float|null $height The required height of a transformed asset. - * @param int|float|array $aspectRatio Resizes the asset to a new aspect ratio. + * @param mixed $width The required width of a transformed asset. + * @param mixed $height The required height of a transformed asset. + * @param mixed $aspectRatio Resizes the asset to a new aspect ratio. * */ public function scale($width = null, $height = null, $aspectRatio = null): static @@ -47,11 +47,11 @@ public function scale($width = null, $height = null, $aspectRatio = null): stati /** * Extracts a region of the given width and height out of the original image. * - * @param int|float|string|null $width The required width of a transformed asset. - * @param int|float|null $height The required height of a transformed asset. - * @param Gravity $gravity Which part of the original image to include. - * @param int|float|X $x Horizontal position for custom-coordinates based cropping - * @param int|float|Y $y Vertical position for custom-coordinates based cropping + * @param mixed $width The required width of a transformed asset. + * @param mixed $height The required height of a transformed asset. + * @param GravityQualifier|string $gravity Which part of the original image to include. + * @param int|float|string|X $x Horizontal position for custom-coordinates based cropping + * @param int|float|string|Y $y Vertical position for custom-coordinates based cropping * */ public function crop($width = null, $height = null, $gravity = null, $x = null, $y = null): static @@ -66,10 +66,10 @@ public function crop($width = null, $height = null, $gravity = null, $x = null, * requested aspect ratio is different than the original, cropping will occur on the dimension that exceeds the * requested size after scaling. * - * @param int|float|string|null $width The required width of a transformed asset. - * @param int|float|null $height The required height of a transformed asset. - * @param Gravity $gravity Which part of the original image to include when the resulting image is - * smaller than the original or the proportions do not match. + * @param mixed $width The required width of a transformed asset. + * @param mixed $height The required height of a transformed asset. + * @param GravityQualifier|string $gravity Which part of the original image to include when the resulting image is + * smaller than the original or the proportions do not match. * */ public function fill($width = null, $height = null, $gravity = null): static @@ -80,9 +80,9 @@ public function fill($width = null, $height = null, $gravity = null): static /** * Custom resize builder. * - * @param string $name Provide future (not supported in the current version) resize name - * @param int|float|string|null $width The required width of a transformed asset. - * @param int|float|null $height The required height of a transformed asset. + * @param string $name Provide future (not supported in the current version) resize name + * @param mixed $width The required width of a transformed asset. + * @param mixed $height The required height of a transformed asset. * */ public function genericResize($name, $width = null, $height = null): static