From 490f652d45a82024a026fd191ddabb8227d98b5b Mon Sep 17 00:00:00 2001 From: Caleb White Date: Wed, 9 Sep 2026 12:02:23 -0500 Subject: [PATCH] test: update literal types after template union fix --- tests/PHPStan/Analyser/nsrt/bug-13374.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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')); }