mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
fix ncurses build error (?: [] in case of false)
This commit is contained in:
parent
ffdc2dc85a
commit
4e2d4f3f05
@ -38,7 +38,7 @@ trait ncurses
|
|||||||
->make();
|
->make();
|
||||||
$final = FileSystem::scanDirFiles(BUILD_BIN_PATH, relative: true);
|
$final = FileSystem::scanDirFiles(BUILD_BIN_PATH, relative: true);
|
||||||
// Remove the new files
|
// Remove the new files
|
||||||
$new_files = array_diff($final, $filelist);
|
$new_files = array_diff($final, $filelist ?: []);
|
||||||
foreach ($new_files as $file) {
|
foreach ($new_files as $file) {
|
||||||
@unlink(BUILD_BIN_PATH . '/' . $file);
|
@unlink(BUILD_BIN_PATH . '/' . $file);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user