PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.2
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 All 200 releases
← All changes | includes/Dependencies/PhpParser/ParserAbstract.php +2 -1 3.4.24.9.2 View file →
@@ -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);