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:
parent
ebaa3fb317
commit
72c26ebd58
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class JobPipeline implements ShouldQueue
|
||||||
|
|
||||||
public string $queue;
|
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->jobs = $jobs;
|
||||||
$this->send = $send ?? function ($event) {
|
$this->send = $send ?? function ($event) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue