Searched refs:createForVersion (Results 1 – 5 of 5) 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);
29 $parser = (new PhpParser\ParserFactory())->createForVersion($attributes['version']);
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