We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6a4139 commit d2238efCopy full SHA for d2238ef
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
@@ -13,7 +13,7 @@ class JsNodeVisitor
protected $filename;
protected $functions = [];
- public function __construct(string $filename, array $validFunctions = null)
+ public function __construct(string $filename, ?array $validFunctions = null)
18
$this->filename = $filename;
19
0 commit comments