From 85750da38d9e1efa900eec09a65e165d0e34624d Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 15 Dec 2024 15:29:00 +0100 Subject: [PATCH] Annotate return types --- packages/framework/src/Support/Filesystem/MediaFile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/framework/src/Support/Filesystem/MediaFile.php b/packages/framework/src/Support/Filesystem/MediaFile.php index 1237a95baad..1bf39274c6f 100644 --- a/packages/framework/src/Support/Filesystem/MediaFile.php +++ b/packages/framework/src/Support/Filesystem/MediaFile.php @@ -102,11 +102,13 @@ protected static function discoverMediaAssetFiles(): array })->all(); } + /** @return array */ protected static function getMediaAssetFiles(): array { return Filesystem::findFiles(Hyde::getMediaDirectory(), static::getMediaFileExtensions(), true)->all(); } + /** @return array|string */ protected static function getMediaFileExtensions(): array|string { return Config::get('hyde.media_extensions', self::EXTENSIONS);