Skip to content

Commit 9b80748

Browse files
authored
Update fixture on parent construct empty usage (#719)
1 parent 3681411 commit 9b80748

4 files changed

Lines changed: 6 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"phpstan/phpstan": "^2.1.8",
1414
"phpstan/phpstan-webmozart-assert": "^2.0",
1515
"phpunit/phpunit": "^11.4",
16-
"rector/rector-src": "dev-main",
16+
"rector/rector-src": "dev-follow-empty-param",
1717
"rector/type-perfect": "^2.0",
1818
"symfony/config": "^6.4",
1919
"symfony/dependency-injection": "^6.4",

rules-tests/DependencyInjection/Rector/Class_/CommandGetByTypeToConstructorInjectionRector/CommandGetByTypeToConstructorInjectionRectorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
use Iterator;
88
use PHPUnit\Framework\Attributes\DataProvider;
9+
use PHPUnit\Framework\Attributes\RunClassInSeparateProcess;
910
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
1011

12+
#[RunClassInSeparateProcess]
1113
final class CommandGetByTypeToConstructorInjectionRectorTest extends AbstractRectorTestCase
1214
{
1315
#[DataProvider('provideData')]

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class CommandValidator extends ContainerAwareCommand
2424
{
2525
public function __construct(private readonly \Symfony\Component\Validator\Validator\ValidatorInterface $validator)
2626
{
27+
parent::__construct();
2728
}
2829
public function configure()
2930
{

rules-tests/DependencyInjection/Rector/Class_/GetBySymfonyStringToConstructorInjectionRector/GetBySymfonyStringToConstructorInjectionRectorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
use Iterator;
88
use PHPUnit\Framework\Attributes\DataProvider;
9+
use PHPUnit\Framework\Attributes\RunClassInSeparateProcess;
910
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
1011

12+
#[RunClassInSeparateProcess]
1113
final class GetBySymfonyStringToConstructorInjectionRectorTest extends AbstractRectorTestCase
1214
{
1315
#[DataProvider('provideData')]

0 commit comments

Comments
 (0)