Skip to content

Commit 2a11310

Browse files
committed
The "withHeader" method of the "\Spiral\RoadRunner\Jobs\Task\WritableHeadersInterface" interface expects the type "string|iterable", "int" is passed
1 parent 2207f31 commit 2a11310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Queue/RoadRunnerJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function failed($e): void
5353
$attempts = $this->attempts();
5454

5555
$this->task
56-
->withHeader('attempts', $attempts + 1)
56+
->withHeader('attempts', (string) ++$attempts)
5757
->fail($e->getMessage());
5858

5959
parent::failed($e);

0 commit comments

Comments
 (0)