From 60dab0108936e6200c7a47948c281252afdb99c9 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Fri, 6 Jan 2023 22:57:57 +0100 Subject: [PATCH] Update constraint Type types --- reference/constraints/Type.rst | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) 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`_: