| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | * @param string|null $dir Directory used to store compiled PHP files. |
| 23 | 23 | * @param Parser|null $parser JMESPath parser to utilize |
| 24 | 24 | * @throws \RuntimeException if the cache directory cannot be created |
| 25 | 25 | */ |
| 26 | - public function __construct($dir = null, Parser $parser = null) | |
| 26 | + public function __construct($dir = null, ?Parser $parser = null) | |
| 27 | 27 | { |
| 28 | 28 | $this->parser = $parser ?: new Parser(); |
| 29 | 29 | $this->compiler = new TreeCompiler(); |
| 30 | 30 | $dir = $dir ?: \sys_get_temp_dir(); |