Lines Matching refs:is

6 PHP-Parser now requires PHP 7.4 or newer to run. It is however still possible to *parse* code for o…
12 In particular, if an older `PhpVersion` is specified, then:
18 version, for example `int` is treated as a class name on PHP 5.6 and as a built-in on PHP 7.0.
23 …upported in PHP 7 and will cause a parse error. In error recovery mode, it is possible to continue…
29 …n removed. While not strictly related to PHP 5 support, this functionality is no longer useful wit…
42 In all cases, the PHP version is a fairly weak hint that is only used on a best-effort basis. The p…
44 For example, if you specify version `"8.0"`, then `class ReadOnly {}` is treated as a valid class d…
55 # After (this is roughly equivalent to PREFER_PHP7 behavior)
71 Now, `throw $e;` is represented as a `Stmt\Expression` that contains an `Expr\Throw_`. The
101 Now, destructuring is always represented using `Node\Expr\List_`. The `kind` attribute with value
153 For example, the name `Foo\Bar` was previously represented by `Name(parts: ['Foo', 'Bar'])` and is
156 It is possible to convert the name to the previous representation using `$name->getParts()`. The
159 The `Name::getParts()` method is available since PHP-Parser 4.16.0, to allow libraries to support
166 `if ($x) { $a; $b; $c; }`, namely a `Stmt\While_` node whose `stmts` subnode is an array of three
169 Now, the nested `{ $b; }` block is represented using an explicit `Stmt\Block` node. However, the
170 outer `{ $a; { $b; } $c; }` block is still represented using a simple array in the `stmts` subnode.
280 * `Node\Scalar\LNumber` is now `Node\Scalar\Int_`.
281 * `Node\Scalar\DNumber` is now `Node\Scalar\Float_`.
282 * `Node\Scalar\Encapsed` is now `Node\Scalar\InterpolatedString`.
283 * `Node\Scalar\EncapsedStringPart` is now `Node\InterpolatedStringPart` and no longer extends
285 * `Node\Expr\ArrayItem` is now `Node\ArrayItem` and no longer extends `Node\Expr`.
286 * `Node\Expr\ClosureUse` is now `Node\ClosureUse` and no longer extends `Node\Expr`.
287 * `Node\Stmt\DeclareDeclare` is now `Node\DeclareItem` and no longer extends `Node\Stmt`.
288 * `Node\Stmt\PropertyProperty` is now `Node\PropertyItem` and no longer extends `Node\Stmt`.
289 * `Node\Stmt\StaticVar` is now `Node\StaticVar` and no longer extends `Node\Stmt`.
290 * `Node\Stmt\UseUse` is now `Node\UseItem` and no longer extends `Node\Stmt`.
326 …PSR-12). Options to restore the previous behavior are not provided, but it is possible to override…
352 A space is now printed between `use` and the following `(` for closures:
397 * For PHP >= 7.3 (default), a newline is no longer forced after heredoc/nowdoc strings, as the requ…
404 …support these changes, precedence is now handled differently in the pretty printer. The internal `…
412is the precedence of the direct parent operator (if any), while `$lhsPrecedence` is that precedenc…
484 public function is(int|string|array $kind): bool;
488 The token array is now an array of `Token`s, rather than an array of arrays and strings.
489 Additionally, the token array is now terminated by a sentinel token with ID 0.
493 The lexer API is reduced to a single `Lexer::tokenize()` method, which returns an array of tokens. …
497 …eate an appropriate instance, and no additional configuration of the lexer is necessary. To use fo…