Skip to content

[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

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 5.x
Bug fix? no
New feature? no
Deprecations? yes
Tickets Fix #37758
License MIT
Doc PR -

Follows symfony/polyfill#310
/cc @stof

@nicolas-grekas nicolas-grekas added this to the 5.x milestone Nov 3, 2020
@nicolas-grekas nicolas-grekas force-pushed the intl-no-polyfill branch 2 times, most recently from b3cbbd7 to 04c1b4d Compare November 3, 2020 14:29
@nicolas-grekas nicolas-grekas force-pushed the intl-no-polyfill branch 2 times, most recently from 12c7b00 to a8d54bc Compare November 3, 2020 14:37
@nicolas-grekas nicolas-grekas force-pushed the intl-no-polyfill branch 2 times, most recently from 9c80039 to 1421dcf Compare November 3, 2020 16:53
@nicolas-grekas nicolas-grekas force-pushed the intl-no-polyfill branch 2 times, most recently from 350de91 to 2dad6d7 Compare November 3, 2020 17:10
@nicolas-grekas nicolas-grekas changed the title [Intl] deprecate polyfill classes in favor of symfony/polyfill-intl-icu [Intl] deprecate polyfills in favor of symfony/polyfill-intl-icu Nov 3, 2020
@@ -59,6 +59,8 @@ public function testTransChoiceWithExplicitLocale($expected, $id, $number)
}

/**
* @requires extension intl
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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 ?

Copy link
Member Author

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.

xabbuh added a commit to symfony/symfony-docs that referenced this pull request Apr 9, 2021
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
@fabpot fabpot mentioned this pull request Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] Split the Intl polyfill from the Intl CLDR features
5 participants