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

This commit is contained in:
Pavel Shevaev 2024-08-23 18:15:16 +03:00
parent 9500897b1e
commit 6b40e78795
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ function need_to_regen(string $file, array $deps, bool $debug = false) : bool
$fmtime = filemtime($file); $fmtime = filemtime($file);
foreach($deps as $dep) foreach($deps as $dep)
{ {
if(is_file($dep) && (filemtime($dep) > $fmtime)) if($dep && is_file($dep) && (filemtime($dep) > $fmtime))
{ {
if($debug) if($debug)
echo "$dep > $file\n"; echo "$dep > $file\n";