1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 21:14:03 +00:00

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 on line 31.
This commit is contained in:
Ercasor 2024-12-06 16:06:20 +01:00 committed by GitHub
parent ebaa3fb317
commit 72c26ebd58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ class JobPipeline implements ShouldQueue
public string $queue;
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) {