File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,12 @@ private static function parseValues(mixed $values): mixed
215215 return $ values ;
216216 }
217217
218- private static function isMediaUlidArray (array $ values ): bool
218+ private static function isMediaUlidArray (mixed $ values ): bool
219219 {
220+ if (! is_array ($ values )) {
221+ return false ;
222+ }
223+
220224 if (! isset ($ values [0 ])) {
221225 return false ;
222226 }
@@ -453,8 +457,12 @@ private static function extractDetailedInfo(array $info): array
453457 return $ info ['imageInfo ' ] ?? $ info ['videoInfo ' ] ?? $ info ['contentInfo ' ] ?? [];
454458 }
455459
456- private static function extractCdnUrlsFromFileData (array $ files ): array
460+ private static function extractCdnUrlsFromFileData (mixed $ files ): array
457461 {
462+ if (! is_array ($ files )) {
463+ return [];
464+ }
465+
458466 $ cdnUrls = [];
459467
460468 foreach ($ files as $ file ) {
You can’t perform that action at this time.
0 commit comments