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.
This commit is contained in:
Mathew Foscarini 2014-04-30 16:25:01 -04:00
parent 6f9efbf386
commit 2244e02017

View file

@ -92,7 +92,8 @@ class ExceptionRenderer {
$this->controller = $this->_getController($exception); $this->controller = $this->_getController($exception);
if (method_exists($this->controller, 'appError')) { 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))); $method = $template = Inflector::variable(str_replace('Exception', '', get_class($exception)));
$code = $exception->getCode(); $code = $exception->getCode();