From 3a582dde8d18e92a0372af97753aef8706ad9529 Mon Sep 17 00:00:00 2001 From: Brown Date: Mon, 18 May 2020 16:57:16 -0400 Subject: [PATCH] Allow merging of numeric-string and literal string --- src/Psalm/Internal/Type/TypeCombination.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Psalm/Internal/Type/TypeCombination.php b/src/Psalm/Internal/Type/TypeCombination.php index dfe8cf8d8..83466c268 100644 --- a/src/Psalm/Internal/Type/TypeCombination.php +++ b/src/Psalm/Internal/Type/TypeCombination.php @@ -1115,7 +1115,6 @@ class TypeCombination if (isset($combination->value_types['string']) && $combination->value_types['string'] instanceof Type\Atomic\TNumericString - && $type instanceof TLiteralString && \is_numeric($type->value) ) { // do nothing