Adding a null check
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2024-12-17 20:01:48 +03:00
parent 2e666d8b66
commit 8e4a56f89c
1 changed files with 3 additions and 0 deletions

View File

@ -222,6 +222,9 @@ function need_to_regen_any(array $files, array $deps, bool $debug = false) : boo
echo "need_to_regen_any, earliest file: $earliest_file ($date)\n"; echo "need_to_regen_any, earliest file: $earliest_file ($date)\n";
} }
if($earliest_file === null)
return true;
return need_to_regen($earliest_file, $deps, $debug); return need_to_regen($earliest_file, $deps, $debug);
} }