1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 18:44:04 +00:00

Add missing return type

This adds the `self` return type to `JobPipeline::shouldBeQueued()` so that static analyzers won't get confused and treat its return value as `mixed`.
This commit is contained in:
Zarunet 2025-07-19 22:41:07 +02:00
parent 240d032172
commit 6bc4480300

View file

@ -51,7 +51,7 @@ class JobPipeline implements ShouldQueue
return $this;
}
public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = null)
public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = null): self
{
$this->shouldBeQueued = $shouldBeQueued;