| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | +// phpcs:ignoreFile -- Bundled third-party (Mozart) dependency; exempt from plugin coding standards. | |
| 2 | 3 | |
| 3 | 4 | namespace WPDeveloper\BetterDocs\Dependencies\PhpParser; |
| 4 | 5 | |
| 5 | 6 | /* |
| @@ -139,9 +140,9 @@ | ||
| 139 | 140 | * |
| 140 | 141 | * @return Node[]|null Array of statements (or null if the 'throwOnError' option is disabled and the parser was |
| 141 | 142 | * unable to recover from an error). |
| 142 | 143 | */ |
| 143 | - public function parse($code, ErrorHandler $errorHandler = null) { | |
| 144 | + public function parse($code, ?ErrorHandler $errorHandler = null) { | |
| 144 | 145 | $this->errorHandler = $errorHandler ?: new ErrorHandler\Throwing; |
| 145 | 146 | |
| 146 | 147 | // Initialize the lexer |
| 147 | 148 | $this->lexer->startLexing($code, $this->errorHandler); |