Repository navigation
Modernize the 8.4.x line - #10
Merged
Merged
Conversation
Replace PHPUnit 10 and PHP_CodeSniffer with Pest 4 (PHPUnit ^12.5.8 floor) and Pint with the per preset, keeping PHPStan at level max from ^2.2. Composer scripts follow the template and call each tool through @php vendor/bin, so composer check runs on the current PHP binary and includes validation and a security audit. The existing tests are rewritten as Pest tests under tests/Unit. The label hook test runs its fixture in a child PHP process so the global function never leaks into other tests. PHPStan analyses tests/Fixtures as well, because the trait is only analysed where an enum uses it.
Port the locale regression test from 8.1.x, where strtoupper(), strtolower() and ucfirst() followed LC_CTYPE. This line's PHP already ignores the locale, so no code change is needed; the test keeps the behavior from regressing.
Use the template workflow: validate, style, analyse, tests, security and archive stages, a fail-fast test matrix over Linux and Windows with the lowest and highest dependencies, SHA-pinned third-party actions, and a final Quality gate. Linux test jobs install a Turkish locale so the locale test runs instead of being skipped.
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
Brings the
8.4.xline to the current package baseline, as #7 did for8.1.x. The locale bug fixed there in 8.1.2 does not affect this line: since PHP 8.2,strtoupper(),strtolower()anducfirst()ignore the locale. Only the regression test is ported.Changes
^12.5.8and coding style to Pint (per); PHP_CodeSniffer removed.composer checknow includes validation and a security audit.is<Case>()names that runs undertr_TR(CI installs the locale on Linux).strict_types.Compatibility
No public API or result changes. Only the development toolchain changed.