mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
cleanup
This commit is contained in:
parent
9b3630ef5e
commit
9444a21084
@ -28,14 +28,6 @@ use Rector\Rector\AbstractRector;
|
||||
*/
|
||||
final class GetParameterToConstructorInjectionRector extends AbstractRector
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $getParameterAwareTypes = [
|
||||
'Symfony\Bundle\FrameworkBundle\Controller\Controller',
|
||||
'Symfony\Component\DependencyInjection\ContainerAwareInterface',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var PropertyNaming
|
||||
*/
|
||||
@ -74,7 +66,11 @@ final class GetParameterToConstructorInjectionRector extends AbstractRector
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->methodCallAnalyzer->isTypesAndMethods($node, $this->getParameterAwareTypes, ['getParameter']);
|
||||
return $this->methodCallAnalyzer->isTypeAndMethod(
|
||||
$node,
|
||||
'Symfony\Bundle\FrameworkBundle\Controller\Controller',
|
||||
'getParameter'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user