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 authored and grogy committed Mar 27, 2024
1 parent 9449eee commit db896de
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 @@ -33,9 +33,9 @@ class Manager
* @return Result
* @throws ParallelLintException
*/
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 db896de

Please sign in to comment.