Skip to content

Commit 4e2d4f3

Browse files
committed
fix ncurses build error (?: [] in case of false)
1 parent ffdc2dc commit 4e2d4f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SPC/builder/unix/library/ncurses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function build(): void
3838
->make();
3939
$final = FileSystem::scanDirFiles(BUILD_BIN_PATH, relative: true);
4040
// Remove the new files
41-
$new_files = array_diff($final, $filelist);
41+
$new_files = array_diff($final, $filelist ?: []);
4242
foreach ($new_files as $file) {
4343
@unlink(BUILD_BIN_PATH . '/' . $file);
4444
}

0 commit comments

Comments
 (0)