-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Intl] deprecate polyfills in favor of symfony/polyfill-intl-icu #38974
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
b3cbbd7
to
04c1b4d
Compare
12c7b00
to
a8d54bc
Compare
9c80039
to
1421dcf
Compare
350de91
to
2dad6d7
Compare
@@ -59,6 +59,8 @@ public function testTransChoiceWithExplicitLocale($expected, $id, $number) | |||
} | |||
|
|||
/** | |||
* @requires extension intl |
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.
why ? the polyfill should be enough as they work in the en locale.
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.
that's the contracts, we don't want to add the polyfill to it.
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.
then maybe change that to a check on the class existence (@requires class NumberFormatter
) so that it accepts both the polyfill or the extension ?
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.
We already have this @requires
in the very next test case.
And we don't care to make this testable with the polyfill - that wouldn't provide anything more AFAIK.
2dad6d7
to
6ad0169
Compare
This PR was squashed before being merged into the 5.3-dev branch. Discussion ---------- [Intl] Remove documentation about deprecated code These classes was deprecated in symfony/symfony#38974. They belong to `symfony/polyfill-intl-icu`. This PR will fix #14532 Commits ------- 9a69cac [Intl] Remove documentation about deprecated code
Follows symfony/polyfill#310
/cc @stof