Searched refs:static (Results 1 – 25 of 52) sorted by relevance
123
1 Global and static variables6 static $a, $b;7 static $a = 'foo', $b = 'bar';10 static $a, $b;11 static $a = 'foo', $b = 'bar';
5 public static function create(): static {}10 public static function create(): static
9 protected static ?float $c = 5.0;10 private static ?self $d;18 protected static ?float $c = 5.0;19 private static ?self $d;
9 static $c = 'baz';18 abstract static function bar() {}32 static $c = 'baz';44 abstract static function bar()
7 private public(set) static $b;20 private public(set) static $b;
1 Some special methods cannot be static3 <?php class A { static function __construct() {} }5 Constructor __construct() cannot be static from 1:17 to 1:2236 <?php class A { static function __destruct() {} }38 Destructor __destruct() cannot be static from 1:17 to 1:2269 <?php class A { static function __clone() {} }71 Clone method __clone() cannot be static from 1:17 to 1:22102 <?php class A { static function __CONSTRUCT() {} }135 <?php class A { static function __Destruct() {} }168 <?php class A { static function __cLoNe() {} }[all …]
5 public static function create(): static {}31 name: static
41 <?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:28105 name: static158 <?php class A implements static {}160 Cannot use 'static' as interface name as it is reserved from 1:26 to 1:31172 name: static214 <?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 …]
7 static $b;10 static function e() {}11 final static function f() {}
7 protected static D $b;9 readonly static public ?int $d;
5 static const X = 1;8 Cannot use 'static' as constant modifier from 3:5 to 3:10
140 <?php class A { static static $a; }142 Multiple static modifiers are not allowed from 1:24 to 1:29
1 Closure add static12 $stmts[0]->expr->static = true;15 static function () {
68 static fn($a)72 $stmts[0]->expr->static = true;73 $stmts[1]->expr->static = false;76 static fn($a)
85 static183 static
8 static function() {};17 static: false51 static: false86 static: false113 static: false142 static: true157 static: false188 static: false
8 namespace static;12 private\protected\public\static\abstract\final();45 name: static78 name: private\protected\public\static\abstract\final
6 static fn(&$x) => $x;19 static: false49 static: false79 static: true107 static: false135 static: false177 static: false193 static: false240 static: false
11 static: false
9 static fn($x, ...$rest) => $rest;18 static fn($x, ...$rest) => $rest;
31 $a = #[A12] static function() {};32 $b = #[A13] static fn() => 0;260 static: false291 static: false321 static: true352 static: true
7 static $c, $d = 'e';
173 * @return static|null Sliced name224 * @return static|null Concatenated name
11 public bool $static; variable in PhpParser\\Node\\Expr\\ArrowFunction
16 static::b();127 name: static
Completed in 18 milliseconds