diff --git a/src/TokenParser/TypesTokenParser.php b/src/TokenParser/TypesTokenParser.php index 2e0850e7e9b..b97eb3b2e4c 100644 --- a/src/TokenParser/TypesTokenParser.php +++ b/src/TokenParser/TypesTokenParser.php @@ -20,7 +20,7 @@ /** * Declare variable types. * - * {% types {foo: 'int', bar?: 'string'} %} + * {% types {foo: 'number', bar?: 'string'} %} * * @author Jeroen Versteeg * diff --git a/tests/Node/TypesTest.php b/tests/Node/TypesTest.php index e5a94b6a995..7c74a5f7aa2 100644 --- a/tests/Node/TypesTest.php +++ b/tests/Node/TypesTest.php @@ -9,14 +9,14 @@ class TypesTest extends NodeTestCase { private static function getValidMapping(): array { - // {foo: 'string', bar?: 'int'} + // {foo: 'string', bar?: 'number'} return [ 'foo' => [ 'type' => 'string', 'optional' => false, ], 'bar' => [ - 'type' => 'int', + 'type' => 'number', 'optional' => true, ], ];