Home
last modified time | relevance | path

Searched refs:PhpVersion (Results 1 – 25 of 26) sorted by relevance

12

/PHP-Parser/test/PhpParser/
H A DPhpVersionTest.php7 $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 DCodeParsingTest.php24 ? PhpVersion::getNewestSupported() : PhpVersion::fromString($version);
H A DPrettyPrinterTest.php23 ? 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 DMatchTokenEmulator.php5 use PhpParser\PhpVersion; alias
8 public function getPhpVersion(): PhpVersion {
9 return PhpVersion::fromComponents(8, 0);
H A DPropertyTokenEmulator.php5 use PhpParser\PhpVersion; alias
8 public function getPhpVersion(): PhpVersion {
9 return PhpVersion::fromComponents(8, 4);
H A DReadonlyFunctionTokenEmulator.php5 use PhpParser\PhpVersion; alias
23 public function getPhpVersion(): PhpVersion {
24 return PhpVersion::fromComponents(8, 2);
H A DEnumTokenEmulator.php5 use PhpParser\PhpVersion; alias
8 public function getPhpVersion(): PhpVersion {
9 return PhpVersion::fromComponents(8, 1);
H A DReadonlyTokenEmulator.php5 use PhpParser\PhpVersion; alias
8 public function getPhpVersion(): PhpVersion {
9 return PhpVersion::fromComponents(8, 1);
H A DAttributeEmulator.php5 use PhpParser\PhpVersion; alias
9 public function getPhpVersion(): PhpVersion {
10 return PhpVersion::fromComponents(8, 0);
H A DTokenEmulator.php5 use PhpParser\PhpVersion; alias
10 abstract public function getPhpVersion(): PhpVersion;
H A DExplicitOctalEmulator.php5 use PhpParser\PhpVersion; alias
9 public function getPhpVersion(): PhpVersion {
10 return PhpVersion::fromComponents(8, 1);
H A DReverseEmulator.php5 use PhpParser\PhpVersion; alias
18 public function getPhpVersion(): PhpVersion {
H A DNullsafeTokenEmulator.php5 use PhpParser\PhpVersion; alias
9 public function getPhpVersion(): PhpVersion {
10 return PhpVersion::fromComponents(8, 0);
H A DAsymmetricVisibilityTokenEmulator.php5 use PhpParser\PhpVersion; alias
9 public function getPhpVersion(): PhpVersion {
10 return PhpVersion::fromComponents(8, 4);
/PHP-Parser/lib/PhpParser/
H A DParserFactory.php14 public function createForVersion(PhpVersion $version): Parser {
32 return $this->createForVersion(PhpVersion::getNewestSupported());
40 return $this->createForVersion(PhpVersion::getHostVersion());
H A DPhpVersion.php8 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 DParserAbstract.php42 /** @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 DPrettyPrinterAbstract.php129 /** @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 DEmulative.php19 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 Dphp-parse144 'version' => PhpParser\PhpVersion::getNewestSupported(),
196 $attributes['version'] = PhpParser\PhpVersion::fromString($matches[1]);
/PHP-Parser/test/PhpParser/Lexer/
H A DEmulativeTest.php9 use PhpParser\PhpVersion; alias
434 $lexer = new Emulative(PhpVersion::fromString($phpVersion));
/PHP-Parser/test_old/
H A Drun.php142 $parser = (new PhpParser\ParserFactory())->createForVersion(PhpParser\PhpVersion::fromString($phpVe…
/PHP-Parser/
H A DUPGRADE-5.0.md10 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 DLexer.markdown30 …r\Lexer\Emulative` performs other, optional emulations. This lexer is parameterized by `PhpVersion`
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown32 use PhpParser\PhpVersion;
41 $parser = (new ParserFactory())->createForVersion(PhpVersion::fromString('8.1'));

Completed in 49 milliseconds

12