Skip to content

Commit ea44966

Browse files
committed
Fixes memory leaks / method invocation side effects.
1 parent 46a373d commit ea44966

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Aop/Framework/AbstractMethodInvocation.php

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ final public function __invoke($instance = null, array $arguments = [], array $v
9292

9393
if ($this->level > 0) {
9494
list($this->arguments, $this->instance, $this->current) = \array_pop($this->stackFrames);
95+
} else {
96+
$this->instance = null;
97+
$this->arguments = [];
9598
}
9699
}
97100
}

0 commit comments

Comments
 (0)