Skip to content

[dx] Remove dead stub files no longer referenced - #8407

Merged
TomasVotruba merged 1 commit into
mainfrom
remove-dead-stubs
Aug 29, 2026
Merged

[dx] Remove dead stub files no longer referenced#8407
TomasVotruba merged 1 commit into
mainfrom
remove-dead-stubs

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Removes stub classes with zero references in src/, rules/, rules-tests/, tests/, config/.

Doctrine (rules moved to rector-doctrine):

  • stubs/Doctrine/DBAL/Connection.php
  • stubs/Doctrine/ORM/QueryBuilder.php
  • stubs/Doctrine/Persistence/ManagerRegistry.php
  • stubs/Doctrine/Persistence/ObjectManager.php

Symfony:

  • stubs/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php (only a regex101 comment matched)
  • stubs/Symfony/Component/Validator/Constraints/Callback.php

Twig (RenameClass test uses SandboxExtension + local source, not these):

  • stubs/Twig/Extension/AbstractExtension.php
  • stubs/Twig/Extension/ExtensionInterface.php

PHP enum stubs — no-ops on required PHP ^8.4; guard interface_exists('BackedEnum') is always true, so the stub returns early:

  • stubs/Php/BackedEnum.php
  • stubs/Php/UnitEnum.php

PHPStan level 8 clean, full test suite green.

Doctrine/Twig/Symfony stubs orphaned after rules moved to sibling
packages; Php enum stubs are no-ops on required PHP ^8.4.

Claude-Session: https://claude.ai/code/session_01F1pQDyMWREpFXpzyHFLpSY
@TomasVotruba
TomasVotruba merged commit 3c4d014 into main Aug 29, 2026
44 checks passed
@TomasVotruba
TomasVotruba deleted the remove-dead-stubs branch August 29, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant