Repository navigation
Revert PHP 8.4 typing changes (#5) from the 1.x line - #7
Merged
Merged
Conversation
#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>
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.
#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 includespackaged/queue'sAbstractQueueProviderand 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.2.xbranch for a future 2.0.0, now requiring PHP 8.3 to match phpunit 12 and its CI.Test plan
ConfigurableInterfacewith an untypedconfigure()fatals against current master and loads after the revert.🤖 Generated with Claude Code