Skip to content

[Validator] Made tests forward-compatible with ICU 72.1 #52740

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 29, 2023

Conversation

derrabus
Copy link
Member

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Issues N/A
License MIT

Starting with ICU 72.1 (CLDR 42), the INTL extension renders a so-called narrow non-breaking space into various localized date and time formats. Our CI does not catch that change yet because it runs an older version of the ICU library.

I'm running PHP on a Mac with Homebrew as package manager which already ships a newer ICU (73.2 currently). This causes a lot of validator tests to fail because they expect a space in time expressions like 12:00 AM where a NNBSP character is rendered instead.

This change is an attempt to give me a green test suite while maintaining the ability to run against older ICU versions, such as the one our CI uses.

@derrabus derrabus force-pushed the improvement/normalize-icu-spaces branch from 9fd5703 to 0ee9933 Compare November 26, 2023 09:41
@xabbuh
Copy link
Member

xabbuh commented Nov 27, 2023

We could update some tests in the Form component in a similar manner (relates to #51049).

@derrabus derrabus merged commit e95605c into symfony:5.4 Nov 29, 2023
@derrabus derrabus deleted the improvement/normalize-icu-spaces branch November 29, 2023 07:43
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.

3 participants