You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The Symfony\Component\Serializer\Normalizer\DateIntervalNormalizer does not accept negative dateinterval.
On the other hand, Doctrine\DBAL\Types\DateIntervalType, can deal with negative dateinterval.
Although, the ISO 8601 allows negative values to be defined.
Is it a wanted behaviour?
Do I misundestand something?
Thanks a lot for your help!
Possible Solution
Accept negative values on this normalizer.
The text was updated successfully, but these errors were encountered:
This PR was merged into the 3.4 branch.
Discussion
----------
[Serializer] Fix negative DateInterval
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #33052
| License | MIT
| Doc PR | NA
This PR adds support for negative and signed DateInterval
Commits
-------
abb8a67 Fix negative DateInterval
This PR was merged into the 3.4 branch.
Discussion
----------
[Serializer] Fix negative DateInterval
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | symfony#33052
| License | MIT
| Doc PR | NA
This PR adds support for negative and signed DateInterval
Commits
-------
abb8a67 Fix negative DateInterval
Symfony version(s) affected: 4.4.X
Description
The Symfony\Component\Serializer\Normalizer\DateIntervalNormalizer does not accept negative dateinterval.
On the other hand, Doctrine\DBAL\Types\DateIntervalType, can deal with negative dateinterval.
Although, the ISO 8601 allows negative values to be defined.
Is it a wanted behaviour?
Do I misundestand something?
Thanks a lot for your help!
Possible Solution
Accept negative values on this normalizer.
The text was updated successfully, but these errors were encountered: