8000 SymfonyLevelSetList::UP_TO_SYMFONY_43 is too aggressive toward `CacheInterface` · Issue #390 · rectorphp/rector-symfony · GitHub
[go: up one dir, main page]

Skip to content
SymfonyLevelSetList::UP_TO_SYMFONY_43 is too aggressive toward CacheInterface #390
@Jean85

Description

@Jean85

The SymfonyLevelSetList::UP_TO_SYMFONY_43 level set includes a RenameClassRector configuration for PSR-6's CacheInterface, which is definitely too aggressive:

'Psr\SimpleCache\CacheInterface' => 'Symfony\Contracts\Cache\CacheInterface',

This acts on any possible PSR-16 that I may have in my codebase, breaking them; also, since it's a RenameClassRector and not a specific rector, I cannot disable it in any way, apart from loosing any other possible rename RenameClassRector on that class.

Is there any workaround? What can I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0