Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Commit53dc781
committed
minor#34340 Allow returning null from NormalizerInterface::normalize (teohhanhui)
This PR was merged into the 3.4 branch.Discussion----------Allow returning null from NormalizerInterface::normalize| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | yes?| New feature? | no| Deprecations? | no| Tickets | N/A| License | MIT| Doc PR | N/ALooking at the code, it seems that a normalizer might be called with a `null` value for `$data`, and thus it's only sensible that it be allowed to return `null` too:https://github.com/symfony/symfony/blob/7064ff35f2539e2c915257a50eb37839b485dbeb/src/Symfony/Component/Serializer/Serializer.php#L141-L148Updating the phpdoc to match.Commits-------1c8edc5 Allow returning null from NormalizerInterface::normalizeFile tree
1 file changed
+2
-2
lines changed- src/Symfony/Component/Serializer/Normalizer
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
|
0 commit comments
Comments
(0)