Adding null check
Publish PHP Package / docker (push) Successful in 7s
Details
Publish PHP Package / docker (push) Successful in 7s
Details
This commit is contained in:
parent
9500897b1e
commit
6b40e78795
|
@ -180,7 +180,7 @@ function need_to_regen(string $file, array $deps, bool $debug = false) : bool
|
|||
$fmtime = filemtime($file);
|
||||
foreach($deps as $dep)
|
||||
{
|
||||
if(is_file($dep) && (filemtime($dep) > $fmtime))
|
||||
if($dep && is_file($dep) && (filemtime($dep) > $fmtime))
|
||||
{
|
||||
if($debug)
|
||||
echo "$dep > $file\n";
|
||||
|
|
Loading…
Reference in New Issue