Skip to content

Commit

Permalink
Update GetBySymfonyStringToConstructorInjectionRector fixture test to…
Browse files Browse the repository at this point in the history
… cover rector-srv:tv-readonly-add-ctor (#696)
  • Loading branch information
samsonasik authored Jan 6, 2025
1 parent 7b98287 commit f14ec1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "^11.4",
"rector/rector-src": "dev-main",
"rector/rector-src": "dev-tv-readonly-add-ctor",
"symfony/config": "^6.4",
"symfony/dependency-injection": "^6.4",
"symfony/http-kernel": "~6.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,17 @@ namespace Rector\Symfony\Tests\DependencyInjection\Rector\Class_\GetBySymfonyStr

use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Validator\Validator\ValidatorInterface;

class PreferRequiredSetter extends Controller
{
private EventDispatcherInterface $eventDispatcher;

private ValidatorInterface $validator;
private \Symfony\Component\Validator\Validator\ValidatorInterface $validator;

/**
* @required
*/
public function autowire(
EventDispatcherInterface $eventDispatcher,
ValidatorInterface $validator
EventDispatcherInterface $eventDispatcher, \Symfony\Component\Validator\Validator\ValidatorInterface $validator
) {
$this->eventDispatcher = $eventDispatcher;
$this->validator = $validator;
Expand Down

0 comments on commit f14ec1a

Please sign in to comment.