forked fromsymfony/symfony-docs
- Notifications
You must be signed in to change notification settings - Fork0
Commit7b998f1
Update questionhelper.rst
hello,when running the example as it is, a deprecation message is shown (i'm on PHP 8.1.6). the deprecation message says that ``trim(): Passing null to parameter#1 ($string) of type string is deprecated``.what if we add a normalizer that returns an empty string when the entered value is `null` otherwise returns the user's intial input. with this suggestion, the example works great1 parent63db952 commit7b998f1
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
420 | 420 |
| |
421 | 421 |
| |
422 | 422 |
| |
| 423 | + | |
| 424 | + | |
| 425 | + | |
423 | 426 |
| |
424 | 427 |
| |
425 | 428 |
| |
|
0 commit comments
Comments
(0)