Skip to content

Commit

Permalink
Replace implicitly nullable parameters for PHP 8.4 (#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
txdFabio authored Dec 6, 2024
1 parent 4c30f9c commit 37d1f29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MasterSupervisor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/ProcessPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/SupervisorProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 37d1f29

Please sign in to comment.