mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +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);
|
$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…
Add table
Reference in a new issue