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:
parent
2312523318
commit
3a582dde8d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user