From 82132647b181f00d27171c134ca9aeed6604cb51 Mon Sep 17 00:00:00 2001 From: Zarunet Date: Tue, 22 Jul 2025 00:08:22 +0200 Subject: [PATCH] Change return types to `static` --- src/JobPipeline.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/JobPipeline.php b/src/JobPipeline.php index 8f653f6..4049d7c 100644 --- a/src/JobPipeline.php +++ b/src/JobPipeline.php @@ -39,19 +39,19 @@ class JobPipeline implements ShouldQueue } /** @param callable[]|string[] $jobs */ - public static function make(array $jobs): self + public static function make(array $jobs): static { return new static($jobs); } - public function send(callable $send): self + public function send(callable $send): static { $this->send = $send; return $this; } - public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = null): self + public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = null): static { $this->shouldBeQueued = $shouldBeQueued; @@ -106,7 +106,7 @@ class JobPipeline implements ShouldQueue /** * Return a serializable version of the current object. */ - public function executable($listenerArgs): self + public function executable($listenerArgs): static { $clone = clone $this;