Skip to content

Commit 3f143a8

Browse files
Fix
1 parent 54b6aec commit 3f143a8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/PHPStan/Analyser/nsrt/bug-6799.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)