Repository navigation
Fix the package audit findings on 8.5.x - #27
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the findings from the package audit of the
8.5.xline:Money::format()could print a negative zero with a locale, internal helpers lived in the forbiddenSupport/folder, CI had no staged quality gate, the docs had no upgrade guide, and a few baseline files had drifted from the template.Changes
Money::format()with a$localecompares the amount with Intl's own formatted zero instead of rounding with the ISO 4217 digits. Intl uses other digits for 26 currencies (IQD has 0, not 3), soMoney::format(-0.4, 'IQD', locale: 'en_US')returned"-IQD 0"; it now returns"IQD 0". The regression test takes the amount from Intl's digits, so it holds on any ICU version.Support/folder is gone.AssertandExcerptmove toPharaonic\Readable, andIntlbecomesServices\Integration\IntlService, since it is the integration with ext-intl. All three stay@internal.tests/Feature/.gitkeepis gone; PHPUnit discovers everything undertests/.fail-fast, ending in aQuality gatejob. Third-party actions are pinned to commit SHAs.phpunit/phpunitsecurity floor, Dependabotarea: dependencieslabels,[Bug]:issue title prefix, README build badge for8.5.x, and CONTRIBUTING/CODE_OF_CONDUCT wording from the template.8.5.3 - Unreleasedchangelog section.Compatibility
No public API change. Output changes only where it used to print a negative zero. The moved helpers were
@internal.Notes
Same change is opened for every line (8.0.x to 8.5.x); develop gets it by merging 8.5.x after release. After CI passes,
Quality gatecan be made a required check on develop and the release lines.