@@ -536,13 +536,13 @@ public function getFileInfo(Asset|string $filePath, bool $summary = false): ?arr
536536 /**
537537 * Get the name of a video file from a path and options
538538 *
539- * @param string $filePath
539+ * @param Asset| string $filePath
540540 * @param array $videoOptions
541541 *
542542 * @return string
543543 * @throws InvalidConfigException
544544 */
545- public function getVideoFilename (string $ filePath , array $ videoOptions ): string
545+ public function getVideoFilename (Asset | string $ filePath , array $ videoOptions ): string
546546 {
547547 $ settings = Transcoder::$ plugin ->getSettings ();
548548 $ videoOptions = $ this ->coalesceOptions ('defaultVideoOptions ' , $ videoOptions );
@@ -559,13 +559,13 @@ public function getVideoFilename(string $filePath, array $videoOptions): string
559559 /**
560560 * Get the name of an audio file from a path and options
561561 *
562- * @param string $filePath
562+ * @param Asset| string $filePath
563563 * @param array $audioOptions
564564 *
565565 * @return string
566566 * @throws InvalidConfigException
567567 */
568- public function getAudioFilename (string $ filePath , array $ audioOptions ): string
568+ public function getAudioFilename (Asset | string $ filePath , array $ audioOptions ): string
569569 {
570570 $ settings = Transcoder::$ plugin ->getSettings ();
571571 $ audioOptions = $ this ->coalesceOptions ('defaultAudioOptions ' , $ audioOptions );
@@ -582,13 +582,13 @@ public function getAudioFilename(string $filePath, array $audioOptions): string
582582 /**
583583 * Get the name of a gif video file from a path and options
584584 *
585- * @param string $filePath
585+ * @param Asset| string $filePath
586586 * @param array $gifOptions
587587 *
588588 * @return string
589589 * @throws InvalidConfigException
590590 */
591- public function getGifFilename (string $ filePath , array $ gifOptions ): string
591+ public function getGifFilename (Asset | string $ filePath , array $ gifOptions ): string
592592 {
593593 $ settings = Transcoder::$ plugin ->getSettings ();
594594 $ gifOptions = $ this ->coalesceOptions ('defaultGifOptions ' , $ gifOptions );
@@ -721,13 +721,13 @@ public function getGifUrl(Asset|string $filePath, array $gifOptions): string|fal
721721 /**
722722 * Get the name of a file from a path and options
723723 *
724- * @param string $filePath
724+ * @param Asset| string $filePath
725725 * @param array $options
726726 *
727727 * @return string
728728 * @throws InvalidConfigException
729729 */
730- protected function getFilename (string $ filePath , array $ options ): string
730+ protected function getFilename (Asset | string $ filePath , array $ options ): string
731731 {
732732 $ settings = Transcoder::$ plugin ->getSettings ();
733733 $ filePath = $ this ->getAssetPath ($ filePath );
0 commit comments