@@ -535,13 +535,13 @@ public function getFileInfo(Asset|string $filePath, bool $summary = false): ?arr
535535 /**
536536 * Get the name of a video file from a path and options
537537 *
538- * @param string $filePath
538+ * @param Asset| string $filePath
539539 * @param array $videoOptions
540540 *
541541 * @return string
542542 * @throws InvalidConfigException
543543 */
544- public function getVideoFilename (string $ filePath , array $ videoOptions ): string
544+ public function getVideoFilename (Asset | string $ filePath , array $ videoOptions ): string
545545 {
546546 $ settings = Transcoder::$ plugin ->getSettings ();
547547 $ videoOptions = $ this ->coalesceOptions ('defaultVideoOptions ' , $ videoOptions );
@@ -558,13 +558,13 @@ public function getVideoFilename(string $filePath, array $videoOptions): string
558558 /**
559559 * Get the name of an audio file from a path and options
560560 *
561- * @param string $filePath
561+ * @param Asset| string $filePath
562562 * @param array $audioOptions
563563 *
564564 * @return string
565565 * @throws InvalidConfigException
566566 */
567- public function getAudioFilename (string $ filePath , array $ audioOptions ): string
567+ public function getAudioFilename (Asset | string $ filePath , array $ audioOptions ): string
568568 {
569569 $ settings = Transcoder::$ plugin ->getSettings ();
570570 $ audioOptions = $ this ->coalesceOptions ('defaultAudioOptions ' , $ audioOptions );
@@ -581,13 +581,13 @@ public function getAudioFilename(string $filePath, array $audioOptions): string
581581 /**
582582 * Get the name of a gif video file from a path and options
583583 *
584- * @param string $filePath
584+ * @param Asset| string $filePath
585585 * @param array $gifOptions
586586 *
587587 * @return string
588588 * @throws InvalidConfigException
589589 */
590- public function getGifFilename (string $ filePath , array $ gifOptions ): string
590+ public function getGifFilename (Asset | string $ filePath , array $ gifOptions ): string
591591 {
592592 $ settings = Transcoder::$ plugin ->getSettings ();
593593 $ gifOptions = $ this ->coalesceOptions ('defaultGifOptions ' , $ gifOptions );
@@ -720,13 +720,13 @@ public function getGifUrl(Asset|string $filePath, array $gifOptions): string|fal
720720 /**
721721 * Get the name of a file from a path and options
722722 *
723- * @param string $filePath
723+ * @param Asset| string $filePath
724724 * @param array $options
725725 *
726726 * @return string
727727 * @throws InvalidConfigException
728728 */
729- protected function getFilename (string $ filePath , array $ options ): string
729+ protected function getFilename (Asset | string $ filePath , array $ options ): string
730730 {
731731 $ settings = Transcoder::$ plugin ->getSettings ();
732732 $ filePath = $ this ->getAssetPath ($ filePath );
0 commit comments