function Parser::parse
Same name in this branch
- 11.1.x vendor/sebastian/cli-parser/src/Parser.php \SebastianBergmann\CliParser\Parser::parse()
- 11.1.x vendor/sebastian/diff/src/Parser.php \SebastianBergmann\Diff\Parser::parse()
- 11.1.x vendor/egulias/email-validator/src/Parser.php \Egulias\EmailValidator\Parser::parse()
- 11.1.x vendor/twig/twig/src/Parser.php \Twig\Parser::parse()
- 11.1.x vendor/symfony/css-selector/Parser/Parser.php \Symfony\Component\CssSelector\Parser\Parser::parse()
- 11.1.x vendor/symfony/yaml/Parser.php \Symfony\Component\Yaml\Parser::parse()
- 11.1.x vendor/mck89/peast/lib/Peast/Selector/Parser.php \Peast\Selector\Parser::parse()
- 11.1.x vendor/mck89/peast/lib/Peast/Syntax/Parser.php \Peast\Syntax\Parser::parse()
Parses PHP code into a node tree.
Parameters
string $code The source code to parse:
ErrorHandler|null $errorHandler Error handler to use for lexer/parser errors, defaults: to ErrorHandler\Throwing.
Return value
Node\Stmt[]|null Array of statements (or null non-throwing error handler is used and the parser was unable to recover from an error).
1 method overrides Parser::parse()
- ParserAbstract::parse in vendor/
nikic/ php-parser/ lib/ PhpParser/ ParserAbstract.php - Parses PHP code into a node tree.
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Parser.php, line 16
Class
Namespace
PhpParserCode
public function parse(string $code, ?ErrorHandler $errorHandler = null) : ?array;