Find the best Rector rule to solve your problem


Configurable

ReplaceArgumentDefaultValueRector

Replaces defined map of arguments in defined methods and their calls.

 $someObject = new SomeClass;
-$someObject->someMethod(SomeClass::OLD_CONSTANT);
+$someObject->someMethod(false);