File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Deploy/Process Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ private function isDeployed(Package $package)
339
339
if ($ this ->isCanBeParalleled ()) {
340
340
if ($ package ->getState () === null ) {
341
341
// phpcs:ignore Magento2.Functions.DiscouragedFunction
342
- $ pid = pcntl_waitpid ($ this ->getPid ($ package ), $ status , WNOHANG );
342
+ $ pid = pcntl_waitpid ($ this ->getPid ($ package ) ?? 0 , $ status , WNOHANG );
343
343
if ($ pid === $ this ->getPid ($ package )) {
344
344
$ package ->setState (Package::STATE_COMPLETED );
345
345
@@ -361,7 +361,7 @@ private function isDeployed(Package $package)
361
361
*/
362
362
private function getPid (Package $ package )
363
363
{
364
- return isset ( $ this ->processIds [$ package ->getPath ()]) ?? null ;
364
+ return $ this ->processIds [$ package ->getPath ()] ?? null ;
365
365
}
366
366
367
367
/**
You can’t perform that action at this time.
0 commit comments