EVOLUTION-NINJA
Edit File: MakeRectorsPublicCompilerPass.php
<?php declare (strict_types=1); namespace Rector\Core\DependencyInjection\CompilerPass; use Rector\Core\Contract\Rector\RectorInterface; use RectorPrefix20211231\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use RectorPrefix20211231\Symfony\Component\DependencyInjection\ContainerBuilder; final class MakeRectorsPublicCompilerPass implements \RectorPrefix20211231\Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface { public function process(\RectorPrefix20211231\Symfony\Component\DependencyInjection\ContainerBuilder $containerBuilder) : void { foreach ($containerBuilder->getDefinitions() as $definition) { if ($definition->getClass() === null) { continue; } if (!\is_a($definition->getClass(), \Rector\Core\Contract\Rector\RectorInterface::class, \true)) { continue; } $definition->setPublic(\true); } } }