Skip to content

Commit

Permalink
Update Aop.php (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
assert6 authored and swoft-bot committed Oct 25, 2018
1 parent 7ebaf5f commit 0d9ccbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aop/Aop.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function doAdvice($target, string $method, array $params, array $advices)
$result = $this->doPoint($advice['around'], $target, $method, $params, $advice, $advices);
} else {
// Before
if ($advice['before'] && ! empty($advice['before'])) {
if (isset($advice['before']) && ! empty($advice['before'])) {
// The result of before point will not effect origin object method
$this->doPoint($advice['before'], $target, $method, $params, $advice, $advices);
}
Expand Down

0 comments on commit 0d9ccbe

Please sign in to comment.