mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +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;
|
private $entityManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Rector\Symfony\Tests\Rector\FrameworkBundle\AbstractToConstructorInjectionRectorSource\SomeTranslatorInterface
|
||||||
|
*/
|
||||||
|
private $translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @DI\Inject("%kernel.cache_dir%")
|
* @DI\Inject("%kernel.cache_dir%")
|
||||||
*/
|
*/
|
||||||
private $cacheDir;
|
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->entityManager = $entityManager;
|
||||||
|
$this->translator = $translator;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,11 @@ class SomeController
|
|||||||
*/
|
*/
|
||||||
private $entityManager;
|
private $entityManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @DI\Inject("translator", strict = false, required = false)
|
||||||
|
*/
|
||||||
|
private $translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @DI\Inject("%kernel.cache_dir%")
|
* @DI\Inject("%kernel.cache_dir%")
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user