Merge pull request #3478 from rectorphp/prefix-get

fix prefixed GetToConstructorInjectionRector classes
This commit is contained in:
kodiakhq[bot] 2020-06-06 16:35:16 +00:00 committed by GitHub
commit e9958edb1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,8 +8,6 @@ use PhpParser\Node;
use PhpParser\Node\Expr\MethodCall;
use Rector\Core\RectorDefinition\CodeSample;
use Rector\Core\RectorDefinition\RectorDefinition;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait;
/**
* @see \Rector\Symfony\Tests\Rector\FrameworkBundle\GetToConstructorInjectionRector\GetToConstructorInjectionRectorTest
@ -24,7 +22,10 @@ final class GetToConstructorInjectionRector extends AbstractToConstructorInjecti
/**
* @param string[] $getMethodAwareTypes
*/
public function __construct(array $getMethodAwareTypes = [Controller::class, ControllerTrait::class])
public function __construct(array $getMethodAwareTypes = [
'Symfony\Bundle\FrameworkBundle\Controller\Controller',
'Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait',
])
{
$this->getMethodAwareTypes = $getMethodAwareTypes;
}