Skip to content

Commit f14ec1a

Browse files
authored
Update GetBySymfonyStringToConstructorInjectionRector fixture test to cover rector-srv:tv-readonly-add-ctor (#696)
1 parent 7b98287 commit f14ec1a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"phpstan/phpstan": "^2.0",
1313
"phpstan/phpstan-webmozart-assert": "^2.0",
1414
"phpunit/phpunit": "^11.4",
15-
"rector/rector-src": "dev-main",
15+
"rector/rector-src": "dev-tv-readonly-add-ctor",
1616
"symfony/config": "^6.4",
1717
"symfony/dependency-injection": "^6.4",
1818
"symfony/http-kernel": "~6.3",

rules-tests/DependencyInjection/Rector/Class_/GetBySymfonyStringToConstructorInjectionRector/Fixture/prefer_required_setter.php.inc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,17 @@ namespace Rector\Symfony\Tests\DependencyInjection\Rector\Class_\GetBySymfonyStr
3333

3434
use Psr\EventDispatcher\EventDispatcherInterface;
3535
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
36-
use Symfony\Component\Validator\Validator\ValidatorInterface;
3736

3837
class PreferRequiredSetter extends Controller
3938
{
4039
private EventDispatcherInterface $eventDispatcher;
41-
42-
private ValidatorInterface $validator;
40+
private \Symfony\Component\Validator\Validator\ValidatorInterface $validator;
4341

4442
/**
4543
* @required
4644
*/
4745
public function autowire(
48-
EventDispatcherInterface $eventDispatcher,
49-
ValidatorInterface $validator
46+
EventDispatcherInterface $eventDispatcher, \Symfony\Component\Validator\Validator\ValidatorInterface $validator
5047
) {
5148
$this->eventDispatcher = $eventDispatcher;
5249
$this->validator = $validator;

0 commit comments

Comments
 (0)