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 7
7
class Foo
8
8
{
9
9
10
- public function test ()
10
+ public function test (string | null $ stringOrNull , mixed $ mixed )
11
11
{
12
12
assertType ('string|false ' , getenv (null ));
13
13
assertType ('array<string, string> ' , getenv ());
14
14
assertType ('string|false ' , getenv ('foo ' ));
15
+
16
+ assertType ('string|false ' , getenv ($ stringOrNull ));
17
+ assertType ('string|false ' , getenv ($ mixed ));
15
18
}
16
19
17
20
}
Original file line number Diff line number Diff line change 7
7
class Foo
8
8
{
9
9
10
- public function test ()
10
+ public function test (string | null $ stringOrNull , mixed $ mixed )
11
11
{
12
12
assertType ('array<string, string> ' , getenv (null ));
13
13
assertType ('array<string, string> ' , getenv ());
14
14
assertType ('string|false ' , getenv ('foo ' ));
15
+
16
+ assertType ('array<string, string>|string|false ' , getenv ($ stringOrNull ));
17
+ assertType ('array<string, string>|string|false ' , getenv ($ mixed ));
15
18
}
16
19
17
20
}
You can’t perform that action at this time.
0 commit comments