Repository navigation
[removal] Remove @api annotations and dead/deprecated public API - #8794
Merged
Merged
Conversation
TomasVotruba
force-pushed
the
tv-remove-api-annotations
branch
from
October 23, 2026 22:08
a395919 to
4304c03
Compare
TomasVotruba
force-pushed
the
tv-remove-api-annotations
branch
10 times, most recently
from
October 24, 2026 09:54
610f4c9 to
500e8c1
Compare
TomasVotruba
force-pushed
the
tv-remove-api-annotations
branch
from
October 24, 2026 10:01
500e8c1 to
00b13e9
Compare
TomasVotruba
force-pushed
the
tv-remove-api-annotations
branch
from
October 24, 2026 10:03
00b13e9 to
103f070
Compare
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.
What
Drops the
@apidocblock annotations acrosssrc/andrules/, together with the dead public API they used to whitelist.Removed dead classes:
Rector\CodingStyle\ValueObject\ObjectMagicMethodsRector\PhpDocParser\ValueObject\AttributeKeyRector\RuleDoc\CodeSample\ComposerJsonAwareCodeSampleRector\RuleDoc\Contract\Category\CategoryInfererInterfaceRemoved deprecated classes:
Rector\Set\ValueObject\SetRector\Set\Contract\SetInterfaceRemoved unused public methods:
BetterNodeFinder::findFirstNonAnonymousClass()NodeFactory::createLocalMethodCall()Removed unused constants on
SetListandBridgeItem.Why
@apionly existed to whitelist symbols from the shipmonk dead-code rules. These symbols are no longer used anywhere - core, rules or sibling extension packages - so the annotation hid genuinely dead code. Dropping it together with the dead symbols shrinks the public surface and lets the dead-code analysis cover the rest.SetandSetInterfacewere already deprecated in favor of bonding rules viaComposerPackageConstraintInterface, and are no longer consumed anywhere, so they go too.Kept
A few symbols stay, with
@api, because they are consumed outside this repo:FixtureTempFileDumper,TestingParser- used by sibling package testsDecoupled
Larger removals that touched sibling packages were split into their own PRs and already merged:
PhpVersionFeatureconstants,UseNodesToAddCollector,GenericAnnotationToAttributeConverter,RectifiedAnalyzer+created_by_rule,RuleDefinitionrule-class accessors, and the deprecatedSetProvider/ComposerTriggeredSet/SetGroup/RuleCodeSamplePrinterInterfaceset.