mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-12 13:54:03 +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:
parent
59467693e6
commit
6b5aaa16a5
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ class JobPipeline implements ShouldQueue
|
||||||
/** @var bool */
|
/** @var bool */
|
||||||
public $shouldBeQueued;
|
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->jobs = $jobs;
|
||||||
$this->send = $send ?? function ($event) {
|
$this->send = $send ?? function ($event) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue