mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
6f9efbf386
commit
2244e02017
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue