mirror of
https://github.com/rectorphp/rector.git
synced 2024-09-06 15:41:59 +00:00
add support for input() call
This commit is contained in:
parent
52e2b62f32
commit
994adbb4c6
@ -90,11 +90,16 @@ CODE_SAMPLE
|
||||
|
||||
$variable = new Variable($requestName);
|
||||
|
||||
$methodName = $node->name;
|
||||
if ($node instanceof FuncCall) {
|
||||
return $variable;
|
||||
if (count($node->args) === 0) {
|
||||
return $variable;
|
||||
}
|
||||
|
||||
$methodName = 'input';
|
||||
}
|
||||
|
||||
return new MethodCall($variable, $node->name, $node->args);
|
||||
return new MethodCall($variable, $methodName, $node->args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user