build!: require PHP 8.3 - #33
Merged
Merged
Conversation
PHP 8.2 reaches end of security support at the end of 2026, Drupal 11 already requires 8.3, and the reference project runs 8.4 - so the audience is past 8.2 while Sputnik forbids itself syntax its users already write: typed class constants had to be reverted in EnvironmentDetector because they are 8.3+. Raises the constraint and the platform config, drops 8.2 from the test matrix, moves the pinned jobs and the release build to 8.3, and updates the two places the docs state the requirement. BREAKING CHANGE: PHP 8.3 is now the minimum version.
This was referenced Aug 19, 2026
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.
Raises the minimum PHP version to 8.3. Mechanical only — no application code changes, so CI passing is the whole review.
Why now:
private const array DEFAULT_SHELL) had to be reverted inEnvironmentDetectorbecause they are 8.3+, while the reference project's own tasks useprivate const stringandprivate const arrayfreely.What changed:
composer.json"php": "^8.3"andconfig.platform.phpto8.3.0composer.lockcomposer update --locksocomposer installdoes not fail on a stale hash; no dependency versions moved.github/workflows/ci.yml8.2; the four pinned jobs move to8.3.github/workflows/release.yml8.3docs/index.md,docs/installation.mdVerified locally:
composer validateclean, 742 tests passing, PHPStan[OK] No errors.Follow-up in a separate PR, so this one stays mechanical: the 8.3 features that actually earn their place — the reverted typed constant, and
#[Override]on the redacting decorators.Correction to an earlier claim in this description: I wrote that
TemplateRenderer::withFormatter()could become a realclonenow. That is wrong, and I checked it rather than repeating it — 8.3 permits reinitialising a readonly property only inside__clone(), which cannot receive the new formatter as an argument. Outside__clone()the assignment still throwsCannot modify readonly property. The currentnew self(...)stays correct.CLAUDE.mdstatesPHP 8.2+; that file only exists in the unmerged #29, so the line is corrected there instead of here.🤖 Generated with Claude Code
https://claude.ai/code/session_018CTvnzcNYmFgm2HQcm821A