-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Intl] relax some date parser patterns #32679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -548,8 +548,12 @@ public function testGetTimeType() | |||
/** | |||
* @dataProvider parseProvider | |||
*/ | |||
public function testParse($pattern, $value, $expected) | |||
public function testParse($pattern, $value, $expected, $requires64bit = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this new argument ever used ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it is. :)
c8cf1af
to
4dbc735
Compare
4dbc735
to
ebb43de
Compare
ebb43de
to
7d0793a
Compare
Looks like PHP's |
Thank you @xabbuh. |
This PR was merged into the 3.4 branch. Discussion ---------- [Intl] relax some date parser patterns | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | While debugging the failures in #31374 I realised that the `IntlDateFormatter` from the Intl component parses dates more strictly than PHP's `IntlDateFormatter` class does. Commits ------- 7d0793a relax some date parser patterns
While debugging the failures in #31374 I realised that the
IntlDateFormatter
from the Intl component parses dates more strictly than PHP'sIntlDateFormatter
class does.