From 2bdfe95af8692056f64871ef65b7e0e2fe9fb6c1 Mon Sep 17 00:00:00 2001 From: Zarunet Date: Sat, 19 Jul 2025 22:41:07 +0200 Subject: [PATCH] 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`. --- src/JobPipeline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JobPipeline.php b/src/JobPipeline.php index 414d7f8..8ec0789 100644 --- a/src/JobPipeline.php +++ b/src/JobPipeline.php @@ -50,7 +50,7 @@ class JobPipeline implements ShouldQueue return $this; } - public function shouldBeQueued(bool $shouldBeQueued = true) + public function shouldBeQueued(bool $shouldBeQueued = true): self { $this->shouldBeQueued = $shouldBeQueued;