@@ -15,7 +15,7 @@ class ImageTransformUrl
15
15
* Generate a regular URL for the image transformation.
16
16
*
17
17
* @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.
19
19
* @param string|null $pathPrefix The path prefix to use. Defaults to the default path prefix.
20
20
* @return string The generated URL.
21
21
*/
@@ -34,7 +34,7 @@ public function make(string $path, array|string $options = [], ?string $pathPref
34
34
* Generate a regular URL for the image transformation.
35
35
*
36
36
* @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.
38
38
* @param string|null $pathPrefix The path prefix to use. Defaults to the default path prefix.
39
39
* @return string The generated URL.
40
40
*/
@@ -47,7 +47,7 @@ public function url(string $path, array|string $options = [], ?string $pathPrefi
47
47
* Generate a signed URL for the image transformation.
48
48
*
49
49
* @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.
51
51
* @param string|null $pathPrefix The path prefix to use. Defaults to the default path prefix.
52
52
* @param DateTimeInterface|\DateInterval|int|null $expiration The expiration time for the signed URL.
53
53
* @return string The signed URL.
@@ -83,7 +83,7 @@ public function signedUrl(string $path, array|string $options = [], ?string $pat
83
83
* Generate a temporary signed URL for the image transformation.
84
84
*
85
85
* @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.
87
87
* @param DateTimeInterface|DateInterval|int $expiration The expiration time for the signed URL.
88
88
* @param string|null $pathPrefix The path prefix to use. Defaults to the default path prefix.
89
89
* @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
98
98
99
99
/**
100
100
* Convert array options to a string format suitable for URL generation.
101
+ *
102
+ * @param array<string, int|string>|string $options
101
103
*/
102
104
protected function optionsToString (array |string $ options ): string
103
105
{
0 commit comments