mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Update ProxyClassNameVistor.php
This commit is contained in:
parent
41c07365cc
commit
5cebb34664
@ -34,7 +34,7 @@ class ProxyClassNameVistor extends NodeVisitorAbstract
|
||||
public function leaveNode(Node $node)
|
||||
{
|
||||
// Rewirte the class name and extends the original class.
|
||||
if ($node instanceof Node\Stmt\Class_ && !$node->isAnonymous()) {
|
||||
if ($node instanceof Node\Stmt\Class_ && ! $node->isAnonymous()) {
|
||||
$node->extends = $node->name;
|
||||
$node->name = new Node\Identifier($this->proxyClassName);
|
||||
return $node;
|
||||
|
Loading…
Reference in New Issue
Block a user