Skip to content

Commit 6dd6bd6

Browse files
committed
fix: Fixed method signature for Transcode::getFileInfo() so that an Asset object can be passed into it
1 parent b551e3c commit 6dd6bd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/Transcode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,13 @@ public function getAudioUrl(Asset|string $filePath, array $audioOptions): string
460460
/**
461461
* Extract information from a video/audio file
462462
*
463-
* @param string $filePath
463+
* @param Asset|string $filePath
464464
* @param bool $summary
465465
*
466466
* @return null|array
467467
* @throws InvalidConfigException
468468
*/
469-
public function getFileInfo(string $filePath, bool $summary = false): ?array
469+
public function getFileInfo(Asset|string $filePath, bool $summary = false): ?array
470470
{
471471
$result = null;
472472
$settings = Transcoder::$plugin->getSettings();

0 commit comments

Comments
 (0)