Skip to content

Commit

Permalink
Make PHP 8.4 implicit nullability fix compatible with PHP < 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Mar 27, 2024
1 parent 4d65d62 commit c09ad7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class Manager
* @throws Exception
* @throws \Exception
*/
public function run(?Settings $settings = null)
public function run($settings = null)
{
$settings = $settings ?: new Settings;
$settings = ($settings instanceof Settings) ? $settings : new Settings();
$output = $this->output ?: $this->getDefaultOutput($settings);

$phpExecutable = PhpExecutable::getPhpExecutable($settings->phpExecutable);
Expand Down

0 comments on commit c09ad7f

Please sign in to comment.