# wpide/3.5.9/vendor/nikic/php-parser/lib/PhpParser/Parser.php

WPIDE – File Manager &amp; Code Editor, version 3.5.9. 19 lines.

- Page: https://pluginprobe.com/plugins/wpide/3.5.9/code/vendor/nikic/php-parser/lib/PhpParser/Parser.php
- Raw: https://pluginprobe.com/plugins/wpide/3.5.9/raw/vendor/nikic/php-parser/lib/PhpParser/Parser.php
- Modified: 2024-10-09T18:42:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpide/3.5.9/code/vendor/nikic/php-parser/lib/PhpParser/Parser.php#L10-L20`.

```php
<?php declare(strict_types=1);

namespace PhpParser;

interface Parser
{
    /**
     * Parses PHP code into a node tree.
     *
     * @param string $code The source code to parse
     * @param ErrorHandler|null $errorHandler Error handler to use for lexer/parser errors, defaults
     *                                        to ErrorHandler\Throwing.
     *
     * @return Node\Stmt[]|null Array of statements (or null non-throwing error handler is used and
     *                          the parser was unable to recover from an error).
     */
    public function parse(string $code, ?ErrorHandler $errorHandler = null);
}

```
