Skip to content

Commit 25099c9

Browse files
committed
Fix recursive call to ControllerTrait::__call.
Signed-off-by: Jason Lewis <[email protected]>
1 parent f4c28b7 commit 25099c9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
##### Fixed
1111

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

1415
### v0.8.0
1516

src/Routing/ControllerTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ public function __call($method, $parameters)
174174
{
175175
if (method_exists($this->response, $method)) {
176176
return call_user_func_array([$this->response, $method], $parameters);
177-
} elseif (method_exists($this, '__call')) {
178-
return $this->__call($method, $parameters);
179177
}
178+
179+
return parent::__call($method, $parameters);
180180
}
181181
}

0 commit comments

Comments
 (0)