ArgumentDefaultValue - improve description

This commit is contained in:
Tomas Votruba 2018-05-04 13:55:47 +01:00
parent 43023ed6f1
commit 0d36b5c99b

View File

@ -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
),
]
);