Skip to content

Revert PHP 8.4 typing changes (#5) from the 1.x line - #7

Merged
TomK merged 1 commit into
masterfrom
revert-php84
Oct 22, 2026
Merged

TomK merged 1 commit into
masterfrom
revert-php84

Conversation

@TomK

@TomK TomK commented Oct 22, 2026

Copy link
Copy Markdown
Member

#5 adds return types to the config interfaces, so any existing implementer that declares those methods without them fails to load: Declaration of ...::configure(...) must be compatible with ConfigurableInterface::configure(...): static. That includes packaged/queue's AbstractQueueProvider and five Fortifi megameld services. queue, http and dal all accept config ^1.x, so releasing it as 1.x would break them on update. It also drops PHP 7.4.

Test plan

  • 100 tests pass locally on PHP 7.4, 8.2 and 8.5 after the revert, with no deprecations; the tree is identical to 1.12.0 apart from Remove Travis config and bump actions/checkout to v7 #6's CI changes.
  • A class implementing ConfigurableInterface with an untyped configure() fatals against current master and loads after the revert.

🤖 Generated with Claude Code

#5 adds return types to ConfigurableInterface, ConfigProviderInterface and
ConfigSectionInterface, which breaks every existing implementer that
declares those methods without them (packaged/queue, and Fortifi's fraud
and translation services), and drops PHP 7.4. 1.12.0 already runs
deprecation-free on PHP 8.5, so 1.x keeps the 1.12.0 code. The change
moves to the 2.x branch.

This reverts commit 5113330.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TomK
TomK merged commit 7b7d16d into master Oct 22, 2026
7 checks passed
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