PREFER_PHP7
PREFER_PHP7 = 1
create(integer $kind, \PhpParser\Lexer|null $lexer = null, array $parserOptions = array()) : \PhpParser\Parser
Creates a Parser instance, according to the provided kind.
integer | $kind | One of ::PREFER_PHP7, ::PREFER_PHP5, ::ONLY_PHP7 or ::ONLY_PHP5 |
\PhpParser\Lexer|null | $lexer | Lexer to use. Defaults to emulative lexer when not specified |
array | $parserOptions | Parser options. See ParserAbstract::__construct() argument |
The parser instance