Skip to content

[Validator] Update constraint Type types #17677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions reference/constraints/Type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <is_array>`
* :phpfunction:`bool <is_bool>`
* :phpfunction:`callable <is_callable>`
* :phpfunction:`float <is_float>`
* :phpfunction:`double <is_double>`
* :phpfunction:`boolean <is_bool>`
* :phpfunction:`int <is_int>`
* :phpfunction:`integer <is_integer>`
* :phpfunction:`iterable <is_iterable>`
* :phpfunction:`long <is_long>`
* :phpfunction:`null <is_null>`
* :phpfunction:`integer <is_int>`
* :phpfunction:`long <is_int>`
* :phpfunction:`float <is_float>`
* :phpfunction:`double <is_float>`
* :phpfunction:`real <is_float>`
* :phpfunction:`numeric <is_numeric>`
* :phpfunction:`string <is_string>`
* :phpfunction:`scalar <is_scalar>`
* :phpfunction:`array <is_array>`
* :phpfunction:`iterable <is_iterable>`
* :phpfunction:`countable <is_countable>`
* :phpfunction:`callable <is_callable>`
* :phpfunction:`object <is_object>`
* :phpfunction:`real <is_real>`
* :phpfunction:`resource <is_resource>`
* :phpfunction:`scalar <is_scalar>`
* :phpfunction:`string <is_string>`
* :phpfunction:`null <is_null>`

Also, you can use ``ctype_*()`` functions from corresponding
`built-in PHP extension`_. Consider `a list of ctype functions`_:
Expand Down