We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c5dad commit 779fcb2Copy full SHA for 779fcb2
src/Symfony/Component/Messenger/EventListener/StopWorkerOnRestartSignalListener.php
@@ -64,13 +64,13 @@ private function shouldRestart(): bool
64
return $this->workerStartedAt < $this->getEndOfStopTime();
65
}
66
67
- private function getEndOfStopTime(): float
+ private function getEndOfStopTime(): ?float
68
{
69
$cacheItem = $this->cachePool->getItem(self::RESTART_REQUESTED_TIMESTAMP_KEY);
70
71
if (!$cacheItem->isHit()) {
72
// no restart has ever been scheduled
73
- return false;
+ return null;
74
75
76
return (float) $cacheItem->get();
0 commit comments