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
7.1.5 | Support for providing general DateTimeInterface objects to the value parameter was added. Formerly, only properDateTime objects were supported.
…mat (pierredup)
This PR was merged into the 3.4 branch.
Discussion
----------
[Intl] Support DateTimeInterface in IntlDateFormatter::format
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #32898
| License | MIT
| Doc PR | N/A
Add support for `DateTimeInterface` to `IntlDateFormatter::format` which is supported since PHP 7.1.5.
Since this component supports PHP from 7.1.3, should version checks be added, to only support DateTimeInterface if PHP is >= 7.1.5 or should the minimum required PHP version bumped to 7.1.5?
Commits
-------
b1e160c Support DateTimeInterface in IntlDateFormatter::format
IntlDateFormatter::format
supportsDateTimeInterface
since php 7.1.5, see https://www.php.net/manual/en/intldateformatter.format.phpBut symfony/intl polyfill does not, see
symfony/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php
Lines 198 to 200 in 9857e4d
The text was updated successfully, but these errors were encountered: