mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +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();
|
||||
$final = FileSystem::scanDirFiles(BUILD_BIN_PATH, relative: true);
|
||||
// Remove the new files
|
||||
$new_files = array_diff($final, $filelist);
|
||||
$new_files = array_diff($final, $filelist ?: []);
|
||||
foreach ($new_files as $file) {
|
||||
@unlink(BUILD_BIN_PATH . '/' . $file);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user