Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Type
number
finite-float
finite-number
1 parent 3a54a22 commit 458fdd5Copy full SHA for 458fdd5
reference/constraints/Type.rst
@@ -208,5 +208,14 @@ Also, you can use ``ctype_*()`` functions from corresponding
208
Make sure that the proper :phpfunction:`locale <setlocale>` is set before
209
using one of these.
210
211
+Finally, you can use aggregated functions:
212
+
213
+* ``number``: ``is_int || is_float && !is_nan``
214
+* ``finite-float``: ``is_float && is_finite``
215
+* ``finite-number``: ``is_int || is_float && is_finite``
216
217
+.. versionadded:: 6.4
218
+ ``number``, ``finite-float`` and ``finite-number`` were introduced in Symfony 6.4.
219
220
.. _built-in PHP extension: https://www.php.net/book.ctype
221
.. _a list of ctype functions: https://www.php.net/ref.ctype
0 commit comments