Skip to content

Commit

Permalink
Annotate return types
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 15, 2024
1 parent d3eaa77 commit 85750da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/framework/src/Support/Filesystem/MediaFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,13 @@ protected static function discoverMediaAssetFiles(): array
})->all();
}

/** @return array<string> */
protected static function getMediaAssetFiles(): array
{
return Filesystem::findFiles(Hyde::getMediaDirectory(), static::getMediaFileExtensions(), true)->all();
}

/** @return array<string>|string */
protected static function getMediaFileExtensions(): array|string
{
return Config::get('hyde.media_extensions', self::EXTENSIONS);
Expand Down

0 comments on commit 85750da

Please sign in to comment.