File tree 2 files changed +6
-6
lines changed
src/Standards/Squiz/Tests/WhiteSpace
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ public static function fCreate($attributes = []): ?static
95
95
}
96
96
97
97
// Also account for static used within union types.
98
- public function fCreate ($ attributes = []): object |static
99
- {
100
- }
98
+ public function staticLast ($ attributes = []): object |static {}
99
+ public function staticMiddle (): string | static | object {}
100
+ public function staticFirst (): static | object { }
101
101
102
102
// Ensure that static as a scope keyword when preceeded by a colon which is not for a type declaration is still handled.
103
103
$ callback = $ cond ? get_fn_name () : static function ($ a ) { return $ a * 10 ; };
Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ public static function fCreate($attributes = []): ?static
90
90
}
91
91
92
92
// Also account for static used within union types.
93
- public function fCreate ($attributes = []): object|static
94
- {
95
- }
93
+ public function staticLast ($attributes = []): object|static {}
94
+ public function staticMiddle(): string|static|object {}
95
+ public function staticFirst(): static|object { }
96
96
97
97
// Ensure that static as a scope keyword when preceeded by a colon which is not for a type declaration is still handled.
98
98
$callback = $cond ? get_fn_name() : static function ($a) { return $a * 10; };
You can’t perform that action at this time.
0 commit comments