Skip to content

Commit 4674aca

Browse files
authored
Differentiate empty list to not set list (#668)
1 parent aab7d5d commit 4674aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Job/AsyncAwsSqsJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function delete()
8383
*/
8484
public function attempts()
8585
{
86-
return (int) $this->job->getAttributes()['ApproximateReceiveCount'];
86+
return (int) ($this->job->getAttributes()['ApproximateReceiveCount'] ?? 0);
8787
}
8888

8989
/**

0 commit comments

Comments
 (0)