Home
last modified time | relevance | path

Searched refs:createForVersion (Results 1 – 7 of 7) sorted by relevance

/PHP-Parser/lib/PhpParser/
H A DParserFactory.php14 public function createForVersion(PhpVersion $version): Parser { function in PhpParser\\ParserFactory
32 return $this->createForVersion(PhpVersion::getNewestSupported());
40 return $this->createForVersion(PhpVersion::getHostVersion());
/PHP-Parser/test/PhpParser/
H A DCodeParsingTest.php25 return $factory->createForVersion($version);
H A DPrettyPrinterTest.php22 $parser = $factory->createForVersion($parserVersion !== null
/PHP-Parser/bin/
H A Dphp-parse29 $parser = (new PhpParser\ParserFactory())->createForVersion($attributes['version']);
/PHP-Parser/test_old/
H A Drun.php142 $parser = (new PhpParser\ParserFactory())->createForVersion(PhpParser\PhpVersion::fromString($phpVe…
/PHP-Parser/
H A DUPGRADE-5.0.md38 * `createForVersion()`: Use this if you know the PHP version of the code you want to parse.
63 $parser = $factory->createForVersion(PhpVersion::fromString("5.6"));
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown41 $parser = (new ParserFactory())->createForVersion(PhpVersion::fromString('8.1'));

Completed in 13 milliseconds