Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 664166c

Browse files
committed
bug #51791 [Messenger] Check if PCNTL is installed (HypeMC)
This PR was merged into the 6.3 branch. Discussion ---------- [Messenger] Check if PCNTL is installed | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #51790 | License | MIT Fixes #51790 Commits ------- 2f00352 [Messenger] Check if PCNTL is installed
2 parents 1b5ddd0 + 2f00352 commit 664166c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Command/ConsumeMessagesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function complete(CompletionInput $input, CompletionSuggestions $suggesti
258258

259259
public function getSubscribedSignals(): array
260260
{
261-
return $this->signals ?? [\SIGTERM, \SIGINT];
261+
return $this->signals ?? (\defined('SIGTERM') ? [\SIGTERM, \SIGINT] : []);
262262
}
263263

264264
public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false

src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
129129

130130
public function getSubscribedSignals(): array
131131
{
132-
return $this->signals ?? [\SIGTERM, \SIGINT];
132+
return $this->signals ?? (\defined('SIGTERM') ? [\SIGTERM, \SIGINT] : []);
133133
}
134134

135135
public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false

0 commit comments

Comments
 (0)