mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
14 lines
414 B
PHP
14 lines
414 B
PHP
``normalizer``
|
|
~~~~~~~~~~~~~~
|
|
|
|
**type**: a `PHP callable`_ **default**: ``null``
|
|
|
|
This option allows you to define the PHP callable applied to the given value before
|
|
checking if it is valid.
|
|
|
|
For example, you may want to pass the ``'trim'`` string to apply the
|
|
:phpfunction:`trim` PHP function in order to ignore leading and trailing
|
|
whitespace during validation.
|
|
|
|
.. _`PHP callable`: https://www.php.net/callable
|