Skip to content

Commit b9df728

Browse files
jrfnlgrogy
authored andcommitted
Make PHP 8.4 implicit nullability fix compatible with PHP < 7.1
1 parent 1d39ab1 commit b9df728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class Manager
1717
* @throws Exception
1818
* @throws \Exception
1919
*/
20-
public function run(?Settings $settings = null)
20+
public function run($settings = null)
2121
{
22-
$settings = $settings ?: new Settings;
22+
$settings = ($settings instanceof Settings) ? $settings : new Settings();
2323
$output = $this->output ?: $this->getDefaultOutput($settings);
2424

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

0 commit comments

Comments
 (0)