Skip to content

Commit db896de

Browse files
jrfnlgrogy
authored andcommitted
Make PHP 8.4 implicit nullability fix compatible with PHP < 7.1
1 parent 9449eee commit db896de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Manager.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class Manager
3333
* @return Result
3434
* @throws ParallelLintException
3535
*/
36-
public function run(?Settings $settings = null)
36+
public function run($settings = null)
3737
{
38-
$settings = $settings ?: new Settings();
38+
$settings = ($settings instanceof Settings) ? $settings : new Settings();
3939
$output = $this->output ?: $this->getDefaultOutput($settings);
4040

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

0 commit comments

Comments
 (0)