From 6b5aaa16a5c2b6ca32abcefd82c9c1320be8c2f3 Mon Sep 17 00:00:00 2001 From: Ercasor Date: Mon, 16 Dec 2024 16:45:18 +0100 Subject: [PATCH] Fix PHP 8.4 deprecation warning (#19) 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) {