File tree Expand file tree Collapse file tree
tests/PHPStan/Analyser/nsrt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ protected function testUnionStringCallbacks(string $function): void
9191 {
9292 $ items = [];
9393 call_user_func_array ($ function , [&$ items ]);
94- assertType ('mixed ' , $ items ); // Could be array<int>|array<string>
94+ assertType ('array<int|string> ' , $ items );
9595 }
9696
9797 /**
@@ -101,7 +101,7 @@ protected function testUnionArrayCallbacks(array $callback): void
101101 {
102102 $ items = [];
103103 call_user_func_array ($ callback , [&$ items ]);
104- assertType ('mixed ' , $ items ); // Could be array<int>|array<string>
104+ assertType ('array<int|string> ' , $ items );
105105 }
106106
107107 /**
@@ -111,6 +111,6 @@ protected function testMixedUnionCallback($callback): void
111111 {
112112 $ items = [];
113113 call_user_func_array ($ callback , [&$ items ]);
114- assertType ('mixed ' , $ items ); // Could be array<int>|array<string>
114+ assertType ('array<int|string> ' , $ items );
115115 }
116116}
You can’t perform that action at this time.
0 commit comments