This function does not throw if lexing errors occur. Instead, errors may be retrieved using
the getErrors() method.
public startLexing ( string $code, phpparser\ErrorHandler $errorHandler = null ) | ||
$code | string | The source code to lex |
$errorHandler | phpparser\ErrorHandler | Error handler to use for lexing errors. Defaults to ErrorHandler\Throwing |