mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 12:14:02 +01:00
771a3390b0
[TypeDeclaration] Handle simple class name as string for non-native class (#501)
12 lines
520 B
PHP
12 lines
520 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20210724;
|
|
|
|
use Rector\Symfony\Rector\ClassMethod\TemplateAnnotationToThisRenderRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
|
$services = $containerConfigurator->services();
|
|
$services->set(\Rector\Symfony\Rector\ClassMethod\TemplateAnnotationToThisRenderRector::class);
|
|
};
|