Home
last modified time | relevance | path

Searched refs:static (Results 1 – 25 of 52) sorted by relevance

123

/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dglobal_static_variables.test1 Global and static variables
6 static $a, $b;
7 static $a = 'foo', $b = 'bar';
10 static $a, $b;
11 static $a = 'foo', $b = 'bar';
H A DstaticType.test5 public static function create(): static {}
10 public static function create(): static
H A Dproperties.test9 protected static ?float $c = 5.0;
10 private static ?self $d;
18 protected static ?float $c = 5.0;
19 private static ?self $d;
H A Dclass.test9 static $c = 'baz';
18 abstract static function bar() {}
32 static $c = 'baz';
44 abstract static function bar()
H A Dasymmetric_visibility.test7 private public(set) static $b;
20 private public(set) static $b;
/PHP-Parser/test/code/parser/stmt/class/
H A DstaticMethod.test1 Some special methods cannot be static
3 <?php class A { static function __construct() {} }
5 Constructor __construct() cannot be static from 1:17 to 1:22
36 <?php class A { static function __destruct() {} }
38 Destructor __destruct() cannot be static from 1:17 to 1:22
69 <?php class A { static function __clone() {} }
71 Clone method __clone() cannot be static from 1:17 to 1:22
102 <?php class A { static function __CONSTRUCT() {} }
135 <?php class A { static function __Destruct() {} }
168 <?php class A { static function __cLoNe() {} }
[all …]
H A DstaticType.test5 public static function create(): static {}
31 name: static
H A Dname.test41 <?php class static {}
93 <?php class A extends static {}
95 Cannot use 'static' as class name as it is reserved from 1:23 to 1:28
105 name: static
158 <?php class A implements static {}
160 Cannot use 'static' as interface name as it is reserved from 1:26 to 1:31
172 name: static
214 <?php interface static {}
264 <?php interface A extends static {}
266 Cannot use 'static' as interface name as it is reserved from 1:27 to 1:32
[all …]
H A DimplicitPublic.test7 static $b;
10 static function e() {}
11 final static function f() {}
H A DpropertyTypes.test7 protected static D $b;
9 readonly static public ?int $d;
H A DconstModifierErrors.test5 static const X = 1;
8 Cannot use 'static' as constant modifier from 3:5 to 3:10
H A Dmodifier_error.test140 <?php class A { static static $a; }
142 Multiple static modifiers are not allowed from 1:24 to 1:29
/PHP-Parser/test/code/formatPreservation/
H A Dclosure.test1 Closure add static
12 $stmts[0]->expr->static = true;
15 static function () {
H A Darrow_function.test68 static fn($a)
72 $stmts[0]->expr->static = true;
73 $stmts[1]->expr->static = false;
76 static fn($a)
H A DremovalViaNull.test85 static
183 static
/PHP-Parser/test/code/parser/expr/
H A Dclosure.test8 static function() {};
17 static: false
51 static: false
86 static: false
113 static: false
142 static: true
157 static: false
188 static: false
H A DkeywordsInNamespacedName.test8 namespace static;
12 private\protected\public\static\abstract\final();
45 name: static
78 name: private\protected\public\static\abstract\final
H A Darrow_function.test6 static fn(&$x) => $x;
19 static: false
49 static: false
79 static: true
107 static: false
135 static: false
177 static: false
193 static: false
240 static: false
H A Dclosure_use_trailing_comma.test11 static: false
/PHP-Parser/test/code/prettyPrinter/expr/
H A Darrow_function.test9 static fn($x, ...$rest) => $rest;
18 static fn($x, ...$rest) => $rest;
/PHP-Parser/test/code/parser/stmt/
H A Dattributes.test31 $a = #[A12] static function() {};
32 $b = #[A13] static fn() => 0;
260 static: false
291 static: false
321 static: true
352 static: true
/PHP-Parser/test/code/parser/stmt/function/
H A DspecialVars.test7 static $c, $d = 'e';
/PHP-Parser/lib/PhpParser/Node/
H A DName.php173 * @return static|null Sliced name
224 * @return static|null Concatenated name
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DArrowFunction.php11 public bool $static; variable in PhpParser\\Node\\Expr\\ArrowFunction
/PHP-Parser/test/code/parser/expr/fetchAndCall/
H A DstaticCall.test16 static::b();
127 name: static

Completed in 39 milliseconds

123