File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
tests/PHPStan/Analyser/nsrt Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,15 @@ public function foo(): void
112
112
assertType ('bool ' , $ v );
113
113
$ clUnioned ->outStaticConst ($ v );
114
114
assertType ('bool ' , $ v ); // should be bool|int
115
+
116
+ assertType ('StaticLateBinding\A ' , A::retStatic (...)());
117
+ assertType ('StaticLateBinding\B ' , B::retStatic (...)());
118
+ assertType ('static(StaticLateBinding\B) ' , self ::retStatic ()(...));
119
+ assertType ('static(StaticLateBinding\B) ' , static ::retStatic (...)());
120
+ assertType ('static(StaticLateBinding\B) ' , parent ::retStatic (...)());
121
+ assertType ('static(StaticLateBinding\B) ' , $ this ->retStatic (...)());
122
+ assertType ('bool ' , X::retStatic (...)());
123
+ assertType ('bool|StaticLateBinding\A|StaticLateBinding\X ' , $ clUnioned ::retStatic (...)()); // should be bool|StaticLateBinding\A
115
124
}
116
125
}
117
126
You can’t perform that action at this time.
0 commit comments