mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
trim all items
This commit is contained in:
parent
5a4b920ae2
commit
25fe794acc
@ -154,8 +154,9 @@ class SourcePatcher
|
|||||||
$spc_micro_patches = $items;
|
$spc_micro_patches = $items;
|
||||||
} else {
|
} else {
|
||||||
$spc_micro_patches = getenv('SPC_MICRO_PATCHES');
|
$spc_micro_patches = getenv('SPC_MICRO_PATCHES');
|
||||||
$spc_micro_patches = $spc_micro_patches === false ? [] : array_filter(explode(',', $spc_micro_patches));
|
$spc_micro_patches = $spc_micro_patches === false ? [] : explode(',', $spc_micro_patches);
|
||||||
}
|
}
|
||||||
|
$spc_micro_patches = array_filter($spc_micro_patches, fn ($item) => trim((string) $item) !== '');
|
||||||
$patch_list = $spc_micro_patches;
|
$patch_list = $spc_micro_patches;
|
||||||
$patches = [];
|
$patches = [];
|
||||||
$serial = ['80', '81', '82', '83', '84', '85'];
|
$serial = ['80', '81', '82', '83', '84', '85'];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user