Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fe40953

Browse files
Fix php7.4 issue
1 parent 1e1693a commit fe40953

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎PheanstalkConsumer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ private function convertJobToMessage(Job $job): PheanstalkMessage
111111
$stats = $this->pheanstalk->statsJob($job);
112112

113113
$message = PheanstalkMessage::jsonUnserialize($job->getData());
114-
$message->setRedelivered($stats['reserves'] > 1);
114+
if (isset($stats['reserves'])) {
115+
$message->setRedelivered($stats['reserves'] > 1);
116+
}
115117
$message->setJob($job);
116118

117119
return $message;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /