Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

This backports intl data from #61431 to 6.4
This also syncs the ICU compilation scripts with 7.4.
This allows generating ICU data once on 6.4 and not have to care about running that again on higher branches.

@nicolas-grekas nicolas-grekas changed the title [Intl] Add metadata about currencies' validtity dates [Intl] Add metadata about currencies' validity dates Aug 29, 2025
@nicolas-grekas
Copy link
Member Author

Thank you @Crovitche-1623.

@nicolas-grekas nicolas-grekas merged commit 8a54b6e into symfony:6.4 Aug 29, 2025
8 of 12 checks passed
@nicolas-grekas nicolas-grekas deleted the intl-currencies branch September 1, 2025 09:57
Comment on lines +240 to +242
if ($unsigned64 >= (1 << 63)) {
$unsigned64 -= (1 << 64);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The psalm job fails since this commit due to a bug: vimeo/psalm#11209

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition is not necessary and the fix is not working. It can be removed: #61681

nicolas-grekas added a commit that referenced this pull request Sep 8, 2025
…tor::icuPairToDate` (GromNaN)

This PR was merged into the 6.4 branch.

Discussion
----------

[Intl] Remove incorrect condition in `CurrencyDataGenerator::icuPairToDate`

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #61556 (comment)
| License       | MIT

Remove a useless condition that breaks psalm analysis.

- `1 << 63 === PHP_INT_MIN` we cannot have a lower int value
- `1 << 64 === 0` so the removing this value doesn't change anything

Fix psalm crash due to bug vimeo/psalm#11209
When `PHP_INT_MIN - 1`, the value is converted to a float that breaks the type system of psalm https://github.com/vimeo/psalm/blob/279f3eab037923d3f9d3ea3de1a16b425653e30c/src/Psalm/Internal/Type/SimpleAssertionReconciler.php#L2073

Dealing with timestamp `>= (1 << 62)/1000` will be necessary when we read [year 146140482](https://3v4l.org/AAKNt).

Commits
-------

7779ac1 [Intl] Remove incorrect condition in CurrencyDataGenerator::icuPairToDate
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.

4 participants