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

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
This commit is contained in:
Ercasor 2024-12-16 16:45:18 +01:00 committed by GitHub
parent 59467693e6
commit 6b5aaa16a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {