diff --git a/src/Psalm/Type/Atomic.php b/src/Psalm/Type/Atomic.php index 1da5b98f9..b65e28550 100644 --- a/src/Psalm/Type/Atomic.php +++ b/src/Psalm/Type/Atomic.php @@ -110,6 +110,9 @@ abstract class Atomic case 'class-string': return new TClassString(); + case 'numeric-string': + return new TNumericString(); + case '$this': return new TNamedObject('static'); diff --git a/tests/TypeReconciliationTest.php b/tests/TypeReconciliationTest.php index 182934308..311de241f 100644 --- a/tests/TypeReconciliationTest.php +++ b/tests/TypeReconciliationTest.php @@ -775,6 +775,17 @@ class TypeReconciliationTest extends TestCase return false; }', ], + 'numericStringAssertion' => [ + '