Skip to content

Commit 233f71c

Browse files
authored
Merge pull request #423 from badrutdinovrr/2.x
Fix memory leaks / method invocation side effects #423
2 parents 46a373d + ea44966 commit 233f71c

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)