I have a problem with FinalClassFixer but I suspect there are more classes with issues. Essentialy not only class namespace is vendor scoped but also its config. So FinalClassInternalFixer has this as default exclude
private const DEFAULTS = ['include' => ['internal'], 'exclude' => ['final', 'Entity', 'ECSPrefix202606\ORM\Entity', 'ECSPrefix202606\ORM\Mapping\Entity', 'ECSPrefix202606\Mapping\Entity', 'Document', 'ECSPrefix202606\ODM\Document']];
and thus FinalClassFixer tries to apply final on doctrine entities.
Reproducer here:https://github.com/SystematicCZ/ecs-bug
This is happening since version 13.1.0
I have a problem with
FinalClassFixerbut I suspect there are more classes with issues. Essentialy not only class namespace is vendor scoped but also its config. SoFinalClassInternalFixerhas this as default excludeand thus
FinalClassFixertries to apply final on doctrine entities.Reproducer here:https://github.com/SystematicCZ/ecs-bug
This is happening since version
13.1.0