|
1 | 1 | normalizer |
2 | 2 | ~~~~~~~~~~ |
3 | 3 |
|
4 | | -**type**:``string``**default**: ``null`` |
| 4 | +**type**:a `PHP callable`_**default**: ``null`` |
5 | 5 |
|
6 | | -This option allowsa ``callable``tobe passedin ordertonormalizethe given |
7 | | -valuewhilecheckingif it is valid. |
| 6 | +This option allows todefine the PHP callable appliedto the given value before |
| 7 | +checkingif it is valid. |
8 | 8 |
|
9 | | -For example, you may want touse:phpfunction:`trim` to ignore leadingand |
10 | | -trailing whitespace during validation. |
| 9 | +For example, you may want to pass the ``'trim'`` string to apply the |
| 10 | +:phpfunction:`trim` PHP functionin order to ignore leadingand trailing |
| 11 | +whitespace during validation. |
| 12 | + |
| 13 | +.. _`PHP callable`:https://www.php.net/callable |