diff --git a/reference/constraints/Type.rst b/reference/constraints/Type.rst index 7a48344b37a..1980b083c38 100644 --- a/reference/constraints/Type.rst +++ b/reference/constraints/Type.rst @@ -96,21 +96,38 @@ type This required option is the fully qualified class name or one of the PHP datatypes as determined by PHP's ``is_`` functions. -* `array `_ -* `bool `_ -* `callable `_ -* `float `_ -* `double `_ -* `int `_ -* `integer `_ -* `long `_ -* `null `_ -* `numeric `_ -* `object `_ -* `real `_ -* `resource `_ -* `scalar `_ -* `string `_ +* :phpfunction:`array ` +* :phpfunction:`bool ` +* :phpfunction:`callable ` +* :phpfunction:`float ` +* :phpfunction:`double ` +* :phpfunction:`int ` +* :phpfunction:`integer ` +* :phpfunction:`long ` +* :phpfunction:`null ` +* :phpfunction:`numeric ` +* :phpfunction:`object ` +* :phpfunction:`real ` +* :phpfunction:`resource ` +* :phpfunction:`scalar ` +* :phpfunction:`string ` + +Also, you can use ``ctype_`` functions from corresponding `built-in PHP extension `_. +Consider `a list of ctype functions `_: + +* :phpfunction:`alnum ` +* :phpfunction:`alpha ` +* :phpfunction:`cntrl ` +* :phpfunction:`digit ` +* :phpfunction:`graph ` +* :phpfunction:`lower ` +* :phpfunction:`print ` +* :phpfunction:`punct ` +* :phpfunction:`space ` +* :phpfunction:`upper ` +* :phpfunction:`xdigit ` + +Make sure that the proper :phpfunction:`locale ` is set before using one of these. message ~~~~~~~