diff --git a/tests/PHPStan/Analyser/nsrt/bug-13374.php b/tests/PHPStan/Analyser/nsrt/bug-13374.php index 563f544b79..4aa747f7e7 100644 --- a/tests/PHPStan/Analyser/nsrt/bug-13374.php +++ b/tests/PHPStan/Analyser/nsrt/bug-13374.php @@ -46,7 +46,7 @@ public function put(int|string $key, mixed $value): static function test(Collection $pushCollection, Collection $putCollection): void { assertType('Bug13374\Collection', $pushCollection->push(123)); - assertType('Bug13374\Collection', $pushCollection->push('foo')); - assertType('Bug13374\Collection', $putCollection->put(123, 456)); - assertType('Bug13374\Collection', $putCollection->put(789, 'foo')); + assertType("Bug13374\Collection", $pushCollection->push('foo')); + assertType('Bug13374\Collection<123|string, int>', $putCollection->put(123, 456)); + assertType("Bug13374\Collection<123|789|string, 'foo'|int>", $putCollection->put(789, 'foo')); }