From c6a59709d3008a43b9b76fc8459368f6f9529ca9 Mon Sep 17 00:00:00 2001 From: Ercasor Date: Fri, 6 Dec 2024 16:18:56 +0100 Subject: [PATCH] Fix PHP 8.4 deprecation warning WARN PHP Deprecated: Stancl\JobPipeline\JobPipeline::__construct(): Implicitly marking parameter $send as nullable is deprecated, the explicit nullable type must be used instead in vendor/stancl/jobpipeline/src/JobPipeline.php --- src/JobPipeline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JobPipeline.php b/src/JobPipeline.php index f77dabf..414d7f8 100644 --- a/src/JobPipeline.php +++ b/src/JobPipeline.php @@ -27,7 +27,7 @@ class JobPipeline implements ShouldQueue /** @var bool */ public $shouldBeQueued; - public function __construct($jobs, callable $send = null, bool $shouldBeQueued = null) + public function __construct($jobs, ?callable $send = null, ?bool $shouldBeQueued = null) { $this->jobs = $jobs; $this->send = $send ?? function ($event) {