@@ -15,7 +15,7 @@ class ImageTransformUrl
1515 * Generate a regular URL for the image transformation.
1616 *
1717 * @param string $path The path to the image.
18- * @param array|string $options The transformation options.
18+ * @param array<string, int|string> |string $options The transformation options.
1919 * @param string|null $pathPrefix The path prefix to use. Defaults to the default path prefix.
2020 * @return string The generated URL.
2121 */
@@ -34,7 +34,7 @@ public function make(string $path, array|string $options = [], ?string $pathPref
3434 * Generate a regular URL for the image transformation.
3535 *
3636 * @param string $path The path to the image.
37- * @param array|string $options The transformation options.
37+ * @param array<string, int|string> |string $options The transformation options.
3838 * @param string|null $pathPrefix The path prefix to use. Defaults to the default path prefix.
3939 * @return string The generated URL.
4040 */
@@ -47,7 +47,7 @@ public function url(string $path, array|string $options = [], ?string $pathPrefi
4747 * Generate a signed URL for the image transformation.
4848 *
4949 * @param string $path The path to the image.
50- * @param array|string $options The transformation options.
50+ * @param array<string, int|string> |string $options The transformation options.
5151 * @param string|null $pathPrefix The path prefix to use. Defaults to the default path prefix.
5252 * @param DateTimeInterface|\DateInterval|int|null $expiration The expiration time for the signed URL.
5353 * @return string The signed URL.
@@ -83,7 +83,7 @@ public function signedUrl(string $path, array|string $options = [], ?string $pat
8383 * Generate a temporary signed URL for the image transformation.
8484 *
8585 * @param string $path The path to the image.
86- * @param array|string $options The transformation options.
86+ * @param array<string, int|string> |string $options The transformation options.
8787 * @param DateTimeInterface|DateInterval|int $expiration The expiration time for the signed URL.
8888 * @param string|null $pathPrefix The path prefix to use. Defaults to the default path prefix.
8989 * @param bool|null $absolute Whether the URL should be absolute. Defaults to true.
@@ -98,6 +98,8 @@ public function temporarySignedUrl(string $path, array|string $options, DateTime
9898
9999 /**
100100 * Convert array options to a string format suitable for URL generation.
101+ *
102+ * @param array<string, int|string>|string $options
101103 */
102104 protected function optionsToString (array |string $ options ): string
103105 {
0 commit comments