1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Allow merging of numeric-string and literal string

This commit is contained in:
Brown 2020-05-18 16:57:16 -04:00
parent 2312523318
commit 3a582dde8d

View File

@ -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