Searched refs:createForVersion (Results 1 – 7 of 7) sorted by relevance
14 public function createForVersion(PhpVersion $version): Parser { function in PhpParser\\ParserFactory32 return $this->createForVersion(PhpVersion::getNewestSupported());40 return $this->createForVersion(PhpVersion::getHostVersion());
25 return $factory->createForVersion($version);
22 $parser = $factory->createForVersion($parserVersion !== null
29 $parser = (new PhpParser\ParserFactory())->createForVersion($attributes['version']);
142 $parser = (new PhpParser\ParserFactory())->createForVersion(PhpParser\PhpVersion::fromString($phpVe…
38 * `createForVersion()`: Use this if you know the PHP version of the code you want to parse.63 $parser = $factory->createForVersion(PhpVersion::fromString("5.6"));
41 $parser = (new ParserFactory())->createForVersion(PhpVersion::fromString('8.1'));
Completed in 13 milliseconds