We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceba775 commit b377d82Copy full SHA for b377d82
2 files changed
src/JsFunctionsScanner.php
@@ -11,7 +11,7 @@ class JsFunctionsScanner implements FunctionsScannerInterface
11
protected $validFunctions;
12
protected $parser;
13
14
- public function __construct(array $validFunctions = null)
+ public function __construct(?array $validFunctions = null)
15
{
16
$this->validFunctions = $validFunctions;
17
$this->parser('latest');
src/JsNodeVisitor.php
@@ -18,7 +18,7 @@ class JsNodeVisitor
18
protected $filename;
19
protected $functions = [];
20
21
- public function __construct(string $filename, array $validFunctions = null)
+ public function __construct(string $filename, ?array $validFunctions = null)
22
23
$this->filename = $filename;
24
0 commit comments