Abstract Interface
public abstract parse ( string $code , ? PhpParser\ErrorHandler $errorHandler = NULL )

Parses PHP code into a node tree.

  • param string $code The source code to parse
  • param PhpParser\ErrorHandler | null $errorHandler Error handler to use for lexer/parser errors, defaults
    to ErrorHandler\Throwing.
  • return PhpParser\Node\Stmt []| null Array of statements (or null non-throwing error handler is used and
    the parser was unable to recover from an error).
© 2022 Bruce Wells
Search Namespaces \ Classes