diff --git a/reference/constraints/Type.rst b/reference/constraints/Type.rst index be6149f53aa..ec8d400c570 100644 --- a/reference/constraints/Type.rst +++ b/reference/constraints/Type.rst @@ -206,22 +206,24 @@ This required option defines the type or collection of types allowed for the given value. Each type is either the FQCN (fully qualified class name) of some PHP class/interface or a valid PHP datatype (checked by PHP's ``is_()`` functions): -* :phpfunction:`array ` * :phpfunction:`bool ` -* :phpfunction:`callable ` -* :phpfunction:`float ` -* :phpfunction:`double ` +* :phpfunction:`boolean ` * :phpfunction:`int ` -* :phpfunction:`integer ` -* :phpfunction:`iterable ` -* :phpfunction:`long ` -* :phpfunction:`null ` +* :phpfunction:`integer ` +* :phpfunction:`long ` +* :phpfunction:`float ` +* :phpfunction:`double ` +* :phpfunction:`real ` * :phpfunction:`numeric ` +* :phpfunction:`string ` +* :phpfunction:`scalar ` +* :phpfunction:`array ` +* :phpfunction:`iterable ` +* :phpfunction:`countable ` +* :phpfunction:`callable ` * :phpfunction:`object ` -* :phpfunction:`real ` * :phpfunction:`resource ` -* :phpfunction:`scalar ` -* :phpfunction:`string ` +* :phpfunction:`null ` Also, you can use ``ctype_*()`` functions from corresponding `built-in PHP extension`_. Consider `a list of ctype functions`_: