Skip to content

Commit af6495d

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-99623' into 2.3.2-develop-pr51
2 parents b4ac56d + 60ea729 commit af6495d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Deploy/Process/Queue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ private function isDeployed(Package $package)
339339
if ($this->isCanBeParalleled()) {
340340
if ($package->getState() === null) {
341341
// phpcs:ignore Magento2.Functions.DiscouragedFunction
342-
$pid = pcntl_waitpid($this->getPid($package), $status, WNOHANG);
342+
$pid = pcntl_waitpid($this->getPid($package) ?? 0, $status, WNOHANG);
343343
if ($pid === $this->getPid($package)) {
344344
$package->setState(Package::STATE_COMPLETED);
345345

@@ -361,7 +361,7 @@ private function isDeployed(Package $package)
361361
*/
362362
private function getPid(Package $package)
363363
{
364-
return isset($this->processIds[$package->getPath()]) ?? null;
364+
return $this->processIds[$package->getPath()] ?? null;
365365
}
366366

367367
/**

0 commit comments

Comments
 (0)