Repository navigation
Open the 8.6.x line for PHP 8.6 - #27
Merged
Merged
Conversation
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.
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
Opens the
8.6.xline for PHP 8.6, for release as8.6.0. The branch starts from8.5.xand includes the audit fixes from #26, so slug output is identical to8.5.1.Changes
Support/is gone, strict types, Pest/Pint/PHPStan level max, gated CI, the template baseline and the upgrade guide.>=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.8.6.0.Compatibility
No code changes were needed for PHP 8.6. Consumers on PHP 8.6 get this line automatically through
^8.xconstraints.Notes
Merge #26 first, then this PR. After release,
developfollows the newest line, so8.6.xis merged intodevelop.