Skip to content

Modernize the 8.4.x line - #10

Merged
MoamenEltouny merged 6 commits into
8.4.xfrom
chore/modernize-8.4.x
Dec 1, 2026
Merged

MoamenEltouny merged 6 commits into
8.4.xfrom
chore/modernize-8.4.x

Conversation

@MoamenEltouny

Copy link
Copy Markdown
Member

Summary

Brings the 8.4.x line to the current package baseline, as #7 did for 8.1.x. The locale bug fixed there in 8.1.2 does not affect this line: since PHP 8.2, strtoupper(), strtolower() and ucfirst() ignore the locale. Only the regression test is ported.

Changes

  • Tests moved to Pest 4 with PHPUnit ^12.5.8 and coding style to Pint (per); PHP_CodeSniffer removed.
  • Composer scripts run each tool on the current PHP binary; composer check now includes validation and a security audit.
  • A locale regression test for is<Case>() names that runs under tr_TR (CI installs the locale on Linux).
  • Staged build workflow with a final Quality gate and pinned third-party actions.
  • Repository baseline: support, maintaining and security files, issue forms, labels, weekly Dependabot, PR template.
  • Docs: README installation and usage, upgrade guide, changelog link, a note on how values are converted in files without strict_types.

Compatibility

No public API or result changes. Only the development toolchain changed.

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.
@MoamenEltouny
MoamenEltouny merged commit 302a4ff into 8.4.x Dec 1, 2026
11 checks passed
@MoamenEltouny
MoamenEltouny deleted the chore/modernize-8.4.x branch December 1, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant