Skip to content

Commit 2be3105

Browse files
committed
magento#22607 static-test-fix
1 parent 8d0a3d8 commit 2be3105

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ private function isDeployed(Package $package)
347347
$result = pcntl_waitpid($pid, $status, WNOHANG);
348348
if ($result === $pid) {
349349
$package->setState(Package::STATE_COMPLETED);
350+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
350351
$exitStatus = pcntl_wexitstatus($status);
351352

352353
$this->logger->info(
@@ -361,7 +362,9 @@ private function isDeployed(Package $package)
361362
// phpcs:ignore Magento2.Functions.DiscouragedFunction
362363
return pcntl_wexitstatus($status) === 0;
363364
} elseif ($result === -1) {
365+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
364366
$errno = pcntl_errno();
367+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
365368
$strerror = pcntl_strerror($errno);
366369

367370
throw new \RuntimeException(
@@ -401,6 +404,7 @@ private function checkTimeout()
401404
* Protect against zombie process
402405
*
403406
* @throws \RuntimeException
407+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
404408
* @return void
405409
*/
406410
public function __destruct()
@@ -417,7 +421,9 @@ public function __destruct()
417421

418422
// phpcs:ignore Magento2.Functions.DiscouragedFunction
419423
if (pcntl_waitpid($pid, $status) === -1) {
424+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
420425
$errno = pcntl_errno();
426+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
421427
$strerror = pcntl_strerror($errno);
422428

423429
throw new \RuntimeException(

0 commit comments

Comments
 (0)