mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Merge pull request #3427 from thinkingmedia/patch-2
remove constructor return value.
This commit is contained in:
commit
279a86f313
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ class ExceptionRenderer {
|
|||
$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();
|
||||
|
|
Loading…
Add table
Reference in a new issue