Skip to content

Commit 60ea729

Browse files
author
OlgaVasyltsun
committed
MAGETWO-99623: Quick static content deployis broken
1 parent b651a26 commit 60ea729

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)