diff --git a/src/SPC/store/Downloader.php b/src/SPC/store/Downloader.php index e94bfedc..63bec807 100644 --- a/src/SPC/store/Downloader.php +++ b/src/SPC/store/Downloader.php @@ -668,7 +668,7 @@ class Downloader ]); break; case 'custom': // Custom download method, like API-based download or other - if (isset($conf['func']) && is_callable($conf['func'])) { + if (isset($conf['func'])) { $conf['name'] = $name; $conf['func']($force, $conf, $download_as); break; diff --git a/src/SPC/util/ConfigValidator.php b/src/SPC/util/ConfigValidator.php index 3cd828ed..445c6242 100644 --- a/src/SPC/util/ConfigValidator.php +++ b/src/SPC/util/ConfigValidator.php @@ -525,7 +525,6 @@ class ConfigValidator 'object|bool' => (is_assoc_array($value) || is_bool($value)) ?: throw new ValidationException("{$type} {$name} [{$field}] must be object or boolean"), 'object|array' => is_array($value) ?: throw new ValidationException("{$type} {$name} [{$field}] must be an object or array"), 'callable' => true, // Skip validation for callable - default => true, }; }