Skip to content

Commit ff3eb32

Browse files
committed
fix: Fixed incorrect return types in TranscoderVariable that could cause exceptions to be thrown
1 parent 55f479c commit ff3eb32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/variables/TranscoderVariable.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public function getAudioUrl($filePath, $audioOptions): string
8080
* @param $filePath
8181
* @param bool $summary
8282
*
83-
* @return array
83+
* @return ?array
8484
* @throws InvalidConfigException
8585
*/
86-
public function getFileInfo($filePath, bool $summary = false): array
86+
public function getFileInfo($filePath, bool $summary = false): ?array
8787
{
8888
return Transcoder::$plugin->transcode->getFileInfo($filePath, $summary);
8989
}
@@ -185,10 +185,10 @@ public function getDownloadUrl($url): string
185185
* @param $filePath
186186
* @param $gifOptions
187187
*
188-
* @return string
188+
* @return string|false|null
189189
* @throws InvalidConfigException
190190
*/
191-
public function getGifUrl($filePath, $gifOptions): string
191+
public function getGifUrl($filePath, $gifOptions): string|false|null
192192
{
193193
return Transcoder::$plugin->transcode->getGifUrl($filePath, $gifOptions);
194194
}

0 commit comments

Comments
 (0)