mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 12:17:48 +08:00
Update ProxyCallVisitor.php
This commit is contained in:
parent
84cb8a5dab
commit
23e9c7cd3c
@ -72,7 +72,6 @@ class ProxyCallVisitor extends NodeVisitorAbstract
|
||||
],
|
||||
]);
|
||||
}
|
||||
return parent::leaveNode($node);
|
||||
}
|
||||
|
||||
public function generateStmts(Interface_ $node): array
|
||||
@ -101,10 +100,9 @@ class ProxyCallVisitor extends NodeVisitorAbstract
|
||||
'params' => value(function () use ($method) {
|
||||
$parameters = [];
|
||||
foreach ($method->getParameters() as $parameter) {
|
||||
$default = $this->handleDefaultValue($parameter);
|
||||
$parameters[] = new Node\Param(
|
||||
new Node\Expr\Variable($parameter->getName()),
|
||||
$default,
|
||||
$this->handleDefaultValue($parameter),
|
||||
value(function () use ($parameter) {
|
||||
if ($parameter->isCallable()) {
|
||||
return new Node\Identifier('callable');
|
||||
|
Loading…
Reference in New Issue
Block a user