mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
[MethodArgumentChangerRector] add another test
This commit is contained in:
parent
909e25e715
commit
4e78e2283a
9
src/config/level/symfony/symfony32.yml
Normal file
9
src/config/level/symfony/symfony32.yml
Normal file
@ -0,0 +1,9 @@
|
||||
rectors:
|
||||
# dependency-injection
|
||||
Rector\Rector\Dynamic\MethodArgumentChangerRector:
|
||||
-
|
||||
class: Symfony\Component\DependencyInjection\ContainerBuilder
|
||||
method: addCompilerPass
|
||||
position: 3
|
||||
type: added
|
||||
default_value: 0
|
@ -44,6 +44,7 @@ final class Test extends TestCase
|
||||
{
|
||||
return [
|
||||
[__DIR__ . '/wrong/wrong.php.inc', __DIR__ . '/correct/correct.php.inc'],
|
||||
[__DIR__ . '/wrong/wrong2.php.inc', __DIR__ . '/correct/correct2.php.inc'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -6,3 +6,10 @@ rectors:
|
||||
position: 0
|
||||
type: added
|
||||
default_value: false
|
||||
|
||||
-
|
||||
class: Symfony\Component\DependencyInjection\ContainerBuilder
|
||||
method: addCompilerPass
|
||||
position: 3
|
||||
type: added
|
||||
default_value: 0
|
||||
|
@ -0,0 +1,10 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
class SomeClass
|
||||
{
|
||||
public function create()
|
||||
{
|
||||
$containerBuilder = new Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
$containerBuilder->addCompilerPass('pass', 'type', 0);
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
class SomeClass
|
||||
{
|
||||
public function create()
|
||||
{
|
||||
$containerBuilder = new Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
$containerBuilder->addCompilerPass('pass', 'type');
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user