Skip to content

Open the 8.6.x line for PHP 8.6 - #27

Merged
MoamenEltouny merged 13 commits into
8.6.xfrom
feature/open-8.6.x
Dec 1, 2026
Merged

MoamenEltouny merged 13 commits into
8.6.xfrom
feature/open-8.6.x

Conversation

@MoamenEltouny

Copy link
Copy Markdown
Member

Summary

Opens the 8.6.x line for PHP 8.6, for release as 8.6.0. The branch starts from 8.5.x and includes the audit fixes from #26, so slug output is identical to 8.5.1.

Changes

  • Audit fixes from Backport the package audit fixes to 8.5.x #26 (the 8.5.x backport of Fix the package audit findings on 8.0.x #21): large rule sets are applied again, upper-case detection stays case-sensitive on PCRE2 10.45+, Support/ is gone, strict types, Pest/Pint/PHPStan level max, gated CI, the template baseline and the upgrade guide.
  • PHP 8.6. Requires PHP >=8.6 <8.7. Pest 5.3.4 (with the PHPUnit 13.4.5 floor it requires), Pint 1.30.6 and PHPStan 2.2.15 are the first releases that run on PHP 8.6 without errors or deprecations; PHPStan targets PHP 8.6.
  • Docs. README, installation requirements, the upgrade guide, SECURITY, CONTRIBUTING and MAINTAINING list the line, and the changelog opens 8.6.0.

Compatibility

No code changes were needed for PHP 8.6. Consumers on PHP 8.6 get this line automatically through ^8.x constraints.

Notes

Merge #26 first, then this PR. After release, develop follows the newest line, so 8.6.x is merged into develop.

RuleSet compiled all search strings into a single alternation. Past
PCRE's pattern size limit (about 3,500 short rules) the pattern failed
to compile, PHP emitted a warning and every rule was silently skipped.

The alternation is now split into patterns that compile, and apply()
runs them as one pass with the same earliest-then-longest match rule,
so a replacement is still never re-processed.
Support/ is not allowed in Pharaonic packages. CamelCase joins the other
text stages as Normalization\CamelCase, and Locale, which parses locale
codes and loads the per-locale overrides, becomes Localization\Locale.
Both stay @internal.
The compatibility forms and the common replacements are loaded with
typed results, so src passes PHPStan at level max.
The Ukrainian override detects upper-case neighbours with \p{Lu} inside
a caseless pattern. From PCRE2 10.45 a caseless \p{Lu} matches every
cased letter, so mixed-case words came out as SHCHastia instead of
Shchastia. The upper-case checks now switch caseless matching off.
The 2.x import path stays on every release line, so it is no longer
marked deprecated.
Tests run on Pest 4 (with the PHPUnit 12.5.8 security floor), Pint with
the per preset replaces PHP_CodeSniffer, and PHPStan 2 analyses src at
level max. Composer scripts follow the Pharaonic baseline: composer
check validates, checks formatting, analyses, tests and audits.
Strict mode governs calls and returns inside the package's own files,
so callers keep their own coercion mode.
Validate, style, analyse, tests (Linux and Windows, lowest and highest
dependencies, plus one job without intl), security audit and an archive
check run in order with fail-fast, and a Quality gate job fails unless
every stage succeeded. Third-party actions are pinned to commit SHAs,
develop and manual runs are covered, and workflow changes are no longer
skipped. A labels workflow syncs .github/labels.yml.
Adds MAINTAINING.md, SUPPORT.md, the labels specification and the
documentation issue form, and takes the PR template, Dependabot
configuration, issue labels, Git metadata, README and code of conduct
from the Pharaonic template. CONTRIBUTING describes the new checks.
The docs gain an upgrade guide, last in the sidebar, covering patch
releases, moving between PHP lines and upgrading from 2.x. The API
reference documents the removeRule() no-op and the facade alias, and
the changelog gains an 8.5.1 entry.
The 8.6.x line requires PHP >=8.6 <8.7. It uses Pest 5.3.4 (with the
PHPUnit 13.4.5 floor it requires), Pint 1.30.6 and PHPStan 2.2.15, the
first releases that run on PHP 8.6 without errors or deprecations, and
PHPStan targets PHP 8.6.
README, installation requirements, the upgrade guide, SECURITY, CONTRIBUTING
and MAINTAINING list the 8.6.x line, and the changelog opens 8.6.0.
@MoamenEltouny MoamenEltouny self-assigned this Dec 1, 2026
@MoamenEltouny
MoamenEltouny merged commit 4c14cdb into 8.6.x Dec 1, 2026
12 checks passed
@MoamenEltouny
MoamenEltouny deleted the feature/open-8.6.x branch December 1, 2026 15:19
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