From 37d1f29daa7500fcd170d5c45b98b592fcaab95a Mon Sep 17 00:00:00 2001 From: txdFabio <118370559+txdFabio@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:58:00 +0100 Subject: [PATCH] Replace implicitly nullable parameters for PHP 8.4 (#1520) --- src/MasterSupervisor.php | 2 +- src/ProcessPool.php | 2 +- src/SupervisorProcess.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MasterSupervisor.php b/src/MasterSupervisor.php index 03aa30ad..46ce8b01 100644 --- a/src/MasterSupervisor.php +++ b/src/MasterSupervisor.php @@ -69,7 +69,7 @@ class MasterSupervisor implements Pausable, Restartable, Terminable * @param string $environment * @return void */ - public function __construct(string $environment = null) + public function __construct(?string $environment = null) { $this->environment = $environment; diff --git a/src/ProcessPool.php b/src/ProcessPool.php index 11697aee..6231897f 100644 --- a/src/ProcessPool.php +++ b/src/ProcessPool.php @@ -51,7 +51,7 @@ class ProcessPool implements Countable * @param \Closure|null $output * @return void */ - public function __construct(SupervisorOptions $options, Closure $output = null) + public function __construct(SupervisorOptions $options, ?Closure $output = null) { $this->options = $options; diff --git a/src/SupervisorProcess.php b/src/SupervisorProcess.php index 48d9d330..c74b5792 100644 --- a/src/SupervisorProcess.php +++ b/src/SupervisorProcess.php @@ -50,7 +50,7 @@ class SupervisorProcess extends WorkerProcess * @param \Closure|null $output * @return void */ - public function __construct(SupervisorOptions $options, $process, Closure $output = null) + public function __construct(SupervisorOptions $options, $process, ?Closure $output = null) { $this->options = $options; $this->name = $options->name;