| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | private $parser; |
| 11 | 11 | private $interpreter; |
| 12 | 12 | private $cache = []; |
| 13 | 13 | private $cachedCount = 0; |
| 14 | - public function __construct(Parser $parser = null, callable $fnDispatcher = null) | |
| 14 | + public function __construct(?Parser $parser = null, ?callable $fnDispatcher = null) | |
| 15 | 15 | { |
| 16 | 16 | $fnDispatcher = $fnDispatcher ?: FnDispatcher::getInstance(); |
| 17 | 17 | $this->interpreter = new TreeInterpreter($fnDispatcher); |
| 18 | 18 | $this->parser = $parser ?: new Parser(); |