mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Fixed aop not work in strict mode
This commit is contained in:
parent
31073275ac
commit
7ef9bf2e8d
@ -60,6 +60,9 @@ class ProxyCallVistor extends NodeVisitorAbstract
|
||||
public function beforeTraverse(array $nodes)
|
||||
{
|
||||
foreach ($nodes as $namespace) {
|
||||
if ($namespace instanceof Node\Stmt\Declare_) {
|
||||
continue;
|
||||
}
|
||||
if (! $namespace instanceof Namespace_) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user