/PHP-Parser/test/PhpParser/Node/Stmt/ |
H A D | InterfaceTest.php | 28 $constants = [ 35 $constants[0], 37 $constants[1], 41 $this->assertSame($constants, $class->getConstants());
|
H A D | ClassTest.php | 63 $constants = [ 70 $constants[0], 72 $constants[1], 76 $this->assertSame($constants, $class->getConstants());
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | ClassConst.php | 20 protected array $constants = []; variable in PhpParser\\Builder\\ClassConst 34 $this->constants = [new Const_($name, BuilderHelpers::normalizeValue($value))]; 46 $this->constants[] = new Const_($name, BuilderHelpers::normalizeValue($value)); 143 $this->constants,
|
H A D | Interface_.php | 16 protected array $constants = []; variable in PhpParser\\Builder\\Interface_ 57 $this->constants[] = $stmt; 90 'stmts' => array_merge($this->constants, $this->methods),
|
H A D | Trait_.php | 15 protected array $constants = []; variable in PhpParser\\Builder\\Trait_ 49 $this->constants[] = $stmt; 78 … 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
|
H A D | Enum_.php | 22 protected array $constants = []; variable in PhpParser\\Builder\\Enum_ 82 $this->constants[] = $stmt; 112 'stmts' => array_merge($this->uses, $this->enumCases, $this->constants, $this->methods),
|
H A D | Class_.php | 21 protected array $constants = []; variable in PhpParser\\Builder\\Class_ 116 $this->constants[] = $stmt; 147 … 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | ClassLike.php | 36 $constants = []; 39 $constants[] = $stmt; 42 return $constants;
|
/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | class_const.test | 1 Class constants
|
/PHP-Parser/test/code/parser/scalar/ |
H A D | magicConst.test | 1 Magic constants
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | const.test | 1 Global constants
|
/PHP-Parser/test/code/prettyPrinter/expr/ |
H A D | literals.test | 5 // magic constants 89 // magic constants
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | typedConstants.test | 1 Typed constants
|
/PHP-Parser/doc/component/ |
H A D | Name_resolution.markdown | 27 * Declarations of functions, classes, interfaces, traits, enums and global constants will have a 78 The `$type` parameters accept one of the `Stmt\Use_::TYPE_*` constants, which represent the three 79 basic symbol types in PHP (functions, constants and everything else).
|
H A D | Constant_expression_evaluation.markdown | 4 Initializers for constants, properties, parameters, etc. have limited support for expressions. For 75 Handling these expression types requires non-local information, such as which global constants are
|
H A D | AST_builders.markdown | 20 * properties, class constants and enum cases
|
/PHP-Parser/test/code/parser/expr/uvs/ |
H A D | constDeref.test | 1 Dereferencing of constants
|
/PHP-Parser/ |
H A D | CHANGELOG.md | 166 * [PHP 8.3] Added support for typed constants. 176 * Moved `NodeTraverser::REMOVE_NODE` etc. to `NodeVisitor::REMOVE_NODE`. The old constants are still 205 * Added support for class constants in trait builder. 344 * [PHP 8.1] Added support for final class constants. 1005 * The constants on `NameTraverserInterface` have been moved into the `NameTraverser` class. 1161 * Magic constants are now supported as semi-reserved keywords. 1230 * Token constants are now defined on `PhpParser\Parser\Tokens` rather than `PhpParser\Parser`.
|
H A D | UPGRADE-3.0.md | 156 * The constants on `NameTraverserInterface` have been moved into the `NameTraverser` class.
|
H A D | UPGRADE-5.0.md | 296 …constants on a separate `PhpParser\Modifiers` class, instead of being part of `PhpParser\Node\Stmt…
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 187 (`PhpParser\Node\Scalar\String_`), `0` (`PhpParser\Node\Scalar\LNumber`) or magic constants
|