Skip to content

Commit

Permalink
Fix recursive call to ControllerTrait::__call.
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
  • Loading branch information
jasonlewis committed Dec 10, 2014
1 parent f4c28b7 commit 25099c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
##### Fixed

- Fixed bug where using the `Input` or `Request` facade prior to internal requests resulted in unexpected input behaviour.
- Fixed recursive call to the `ControllerTrait::__call` method.

### v0.8.0

Expand Down
4 changes: 2 additions & 2 deletions src/Routing/ControllerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ public function __call($method, $parameters)
{
if (method_exists($this->response, $method)) {
return call_user_func_array([$this->response, $method], $parameters);
} elseif (method_exists($this, '__call')) {
return $this->__call($method, $parameters);
}

return parent::__call($method, $parameters);
}
}

0 comments on commit 25099c9

Please sign in to comment.