mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
add test case with bool types, for sure
This commit is contained in:
parent
84051fbcde
commit
ca271747ea
@ -11,12 +11,18 @@ class SomeController
|
||||
*/
|
||||
private $entityManager;
|
||||
|
||||
/**
|
||||
* @var \Rector\Symfony\Tests\Rector\FrameworkBundle\AbstractToConstructorInjectionRectorSource\SomeTranslatorInterface
|
||||
*/
|
||||
private $translator;
|
||||
|
||||
/**
|
||||
* @DI\Inject("%kernel.cache_dir%")
|
||||
*/
|
||||
private $cacheDir;
|
||||
public function __construct(\Rector\Symfony\Tests\Rector\FrameworkBundle\AbstractToConstructorInjectionRectorSource\SomeEntityManager $entityManager)
|
||||
public function __construct(\Rector\Symfony\Tests\Rector\FrameworkBundle\AbstractToConstructorInjectionRectorSource\SomeEntityManager $entityManager, \Rector\Symfony\Tests\Rector\FrameworkBundle\AbstractToConstructorInjectionRectorSource\SomeTranslatorInterface $translator)
|
||||
{
|
||||
$this->entityManager = $entityManager;
|
||||
$this->translator = $translator;
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,11 @@ class SomeController
|
||||
*/
|
||||
private $entityManager;
|
||||
|
||||
/**
|
||||
* @DI\Inject("translator", strict = false, required = false)
|
||||
*/
|
||||
private $translator;
|
||||
|
||||
/**
|
||||
* @DI\Inject("%kernel.cache_dir%")
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user