File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
tests/PHPStan/Analyser/data Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 77class Foo
88{
99
10- public function test ()
10+ public function test (string | null $ stringOrNull , mixed $ mixed )
1111 {
1212 assertType ('string|false ' , getenv (null ));
1313 assertType ('array<string, string> ' , getenv ());
1414 assertType ('string|false ' , getenv ('foo ' ));
15+
16+ assertType ('string|false ' , getenv ($ stringOrNull ));
17+ assertType ('string|false ' , getenv ($ mixed ));
1518 }
1619
1720}
Original file line number Diff line number Diff line change 77class Foo
88{
99
10- public function test ()
10+ public function test (string | null $ stringOrNull , mixed $ mixed )
1111 {
1212 assertType ('array<string, string> ' , getenv (null ));
1313 assertType ('array<string, string> ' , getenv ());
1414 assertType ('string|false ' , getenv ('foo ' ));
15+
16+ assertType ('array<string, string>|string|false ' , getenv ($ stringOrNull ));
17+ assertType ('array<string, string>|string|false ' , getenv ($ mixed ));
1518 }
1619
1720}
You can’t perform that action at this time.
0 commit comments