Fixed aop not work in strict mode

This commit is contained in:
李铭昕 2018-12-28 12:02:00 +08:00
parent 31073275ac
commit 7ef9bf2e8d

View File

@ -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;
}