Skip to content

Commit f8801e2

Browse files
committed
phpstan fix
1 parent 5e229a0 commit f8801e2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/SPC/store/Downloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ private static function downloadByType(string $type, string $name, array $conf,
668668
]);
669669
break;
670670
case 'custom': // Custom download method, like API-based download or other
671-
if (isset($conf['func']) && is_callable($conf['func'])) {
671+
if (isset($conf['func'])) {
672672
$conf['name'] = $name;
673673
$conf['func']($force, $conf, $download_as);
674674
break;

src/SPC/util/ConfigValidator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ private static function validateFieldType(string $field, mixed $value, string $n
525525
'object|bool' => (is_assoc_array($value) || is_bool($value)) ?: throw new ValidationException("{$type} {$name} [{$field}] must be object or boolean"),
526526
'object|array' => is_array($value) ?: throw new ValidationException("{$type} {$name} [{$field}] must be an object or array"),
527527
'callable' => true, // Skip validation for callable
528-
default => true,
529528
};
530529
}
531530

0 commit comments

Comments
 (0)