/PHP-Parser/test/PhpParser/ |
H A D | PhpVersionTest.php | 7 $version = PhpVersion::fromComponents(8, 2); 10 $version = PhpVersion::fromString('8.2'); 13 $version = PhpVersion::fromString('8.2.14'); 16 $version = PhpVersion::fromString('8.2.14rc1'); 23 PhpVersion::fromString('8'); 27 $php74 = PhpVersion::fromComponents(7, 4); 28 $php81 = PhpVersion::fromComponents(8, 1); 29 $php82 = PhpVersion::fromComponents(8, 2);
|
H A D | CodeParsingTest.php | 24 ? PhpVersion::getNewestSupported() : PhpVersion::fromString($version);
|
H A D | PrettyPrinterTest.php | 23 ? PhpVersion::fromString($parserVersion) : PhpVersion::getNewestSupported()); 25 … 'phpVersion' => $printerVersion !== null ? PhpVersion::fromString($printerVersion) : null, 258 'phpVersion' => PhpVersion::fromComponents(7, 2),
|
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/ |
H A D | MatchTokenEmulator.php | 5 use PhpParser\PhpVersion; alias 8 public function getPhpVersion(): PhpVersion { 9 return PhpVersion::fromComponents(8, 0);
|
H A D | PropertyTokenEmulator.php | 5 use PhpParser\PhpVersion; alias 8 public function getPhpVersion(): PhpVersion { 9 return PhpVersion::fromComponents(8, 4);
|
H A D | ReadonlyFunctionTokenEmulator.php | 5 use PhpParser\PhpVersion; alias 23 public function getPhpVersion(): PhpVersion { 24 return PhpVersion::fromComponents(8, 2);
|
H A D | EnumTokenEmulator.php | 5 use PhpParser\PhpVersion; alias 8 public function getPhpVersion(): PhpVersion { 9 return PhpVersion::fromComponents(8, 1);
|
H A D | ReadonlyTokenEmulator.php | 5 use PhpParser\PhpVersion; alias 8 public function getPhpVersion(): PhpVersion { 9 return PhpVersion::fromComponents(8, 1);
|
H A D | AttributeEmulator.php | 5 use PhpParser\PhpVersion; alias 9 public function getPhpVersion(): PhpVersion { 10 return PhpVersion::fromComponents(8, 0);
|
H A D | TokenEmulator.php | 5 use PhpParser\PhpVersion; alias 10 abstract public function getPhpVersion(): PhpVersion;
|
H A D | ExplicitOctalEmulator.php | 5 use PhpParser\PhpVersion; alias 9 public function getPhpVersion(): PhpVersion { 10 return PhpVersion::fromComponents(8, 1);
|
H A D | ReverseEmulator.php | 5 use PhpParser\PhpVersion; alias 18 public function getPhpVersion(): PhpVersion {
|
H A D | NullsafeTokenEmulator.php | 5 use PhpParser\PhpVersion; alias 9 public function getPhpVersion(): PhpVersion { 10 return PhpVersion::fromComponents(8, 0);
|
H A D | AsymmetricVisibilityTokenEmulator.php | 5 use PhpParser\PhpVersion; alias 9 public function getPhpVersion(): PhpVersion { 10 return PhpVersion::fromComponents(8, 4);
|
/PHP-Parser/lib/PhpParser/ |
H A D | ParserFactory.php | 14 public function createForVersion(PhpVersion $version): Parser { 32 return $this->createForVersion(PhpVersion::getNewestSupported()); 40 return $this->createForVersion(PhpVersion::getHostVersion());
|
H A D | PhpVersion.php | 8 class PhpVersion { class 69 public function equals(PhpVersion $other): bool { 76 public function newerOrEqual(PhpVersion $other): bool { 83 public function older(PhpVersion $other): bool {
|
H A D | ParserAbstract.php | 42 /** @var PhpVersion PHP version to target on a best-effort basis */ 43 protected PhpVersion $phpVersion; 150 * @param PhpVersion $phpVersion PHP version to target, defaults to latest supported. This 156 public function __construct(Lexer $lexer, ?PhpVersion $phpVersion = null) { 158 $this->phpVersion = $phpVersion ?? PhpVersion::getNewestSupported();
|
H A D | PrettyPrinterAbstract.php | 129 /** @var PhpVersion PHP version to target */ 130 protected PhpVersion $phpVersion; 193 $this->phpVersion = $options['phpVersion'] ?? PhpVersion::fromComponents(7, 4);
|
/PHP-Parser/lib/PhpParser/Lexer/ |
H A D | Emulative.php | 19 use PhpParser\PhpVersion; alias 29 private PhpVersion $targetPhpVersion; 31 private PhpVersion $hostPhpVersion; 34 * @param PhpVersion|null $phpVersion PHP version to emulate. Defaults to newest supported. 36 public function __construct(?PhpVersion $phpVersion = null) { 37 $this->targetPhpVersion = $phpVersion ?? PhpVersion::getNewestSupported(); 38 $this->hostPhpVersion = PhpVersion::getHostVersion(); 103 private function isForwardEmulationNeeded(PhpVersion $emulatorPhpVersion): bool { 108 private function isReverseEmulationNeeded(PhpVersion $emulatorPhpVersion): bool {
|
/PHP-Parser/bin/ |
H A D | php-parse | 144 'version' => PhpParser\PhpVersion::getNewestSupported(), 196 $attributes['version'] = PhpParser\PhpVersion::fromString($matches[1]);
|
/PHP-Parser/test/PhpParser/Lexer/ |
H A D | EmulativeTest.php | 9 use PhpParser\PhpVersion; alias 434 $lexer = new Emulative(PhpVersion::fromString($phpVersion));
|
/PHP-Parser/test_old/ |
H A D | run.php | 142 $parser = (new PhpParser\ParserFactory())->createForVersion(PhpParser\PhpVersion::fromString($phpVe…
|
/PHP-Parser/ |
H A D | UPGRADE-5.0.md | 10 The dedicated parser for PHP 5 has been removed. The PHP 7 parser now accepts a `PhpVersion` argume… 12 In particular, if an older `PhpVersion` is specified, then: 48 use PhpParser\PhpVersion; 63 $parser = $factory->createForVersion(PhpVersion::fromString("5.6")); 392 The pretty printer now accepts a `phpVersion` option, which accepts a `PhpVersion` object and defau…
|
/PHP-Parser/doc/component/ |
H A D | Lexer.markdown | 30 …r\Lexer\Emulative` performs other, optional emulations. This lexer is parameterized by `PhpVersion`
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 32 use PhpParser\PhpVersion; 41 $parser = (new ParserFactory())->createForVersion(PhpVersion::fromString('8.1'));
|