mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-20 01:52:22 +00:00
ArgumentDefaultValue - improve description
This commit is contained in:
parent
43023ed6f1
commit
0d36b5c99b
|
@ -49,10 +49,15 @@ final class ArgumentDefaultValueReplacerRector extends AbstractArgumentRector
|
|||
'[Dynamic] Replaces defined map of arguments in defined methods and their calls.',
|
||||
[
|
||||
new CodeSample(
|
||||
'$containerBuilder = new Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
$container->register("foo", "stdClass")->setScope(ContainerBuilder::SCOPE_PROTOTYPE);',
|
||||
'$containerBuilder = new Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
$container->register("foo", "stdClass")->setScope(false);'
|
||||
<<<'CODE_SAMPLE'
|
||||
$someObject = new SomeClass;
|
||||
$someObject->someMethod(SomeClass::OLD_CONSTANT);
|
||||
CODE_SAMPLE
|
||||
,
|
||||
<<<'CODE_SAMPLE'
|
||||
$someObject = new SomeClass;
|
||||
$someObject->someMethod(false);'
|
||||
CODE_SAMPLE
|
||||
),
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user