Skip to content
Permalink
Browse files

remove constructor return value.

Not sure why this was here, but constructors shouldn't return a value. Nothing in the docs says that a controller's implementation of appError should return a value either. So I figure this was a mistake.
  • Loading branch information...
Mathew Foscarini
Mathew Foscarini committed Apr 30, 2014
1 parent 6f9efbf commit 2244e02017a3da4f8a4d3f78ea888723b63df509
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Error/ExceptionRenderer.php
@@ -92,7 +92,8 @@ public function __construct(Exception $exception) {
$this->controller = $this->_getController($exception);
if (method_exists($this->controller, 'appError')) {
return $this->controller->appError($exception);
$this->controller->appError($exception);
return;
}
$method = $template = Inflector::variable(str_replace('Exception', '', get_class($exception)));
$code = $exception->getCode();

0 comments on commit 2244e02

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.