Skip to content

Commit c8a9a26

Browse files
authored
Merge pull request #756 from FriendsOfCake/issue-755
Update method signature to match parent class' method.
2 parents 1b4656d + ed71220 commit c8a9a26

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Error/ExceptionRenderer.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ public function validation(ValidationException $error): Response
6666
* a MissingView exception
6767
*
6868
* @param string $template The template to render.
69-
* @return \Cake\Http\Response
69+
* @param bool $skipControllerCheck Skip checking controller for existence of
70+
* method matching the exception name.
71+
* @return \Cake\Http\Response A response object that can be sent.
7072
*/
71-
protected function _outputMessage(string $template): Response
73+
protected function _outputMessage(string $template, bool $skipControllerCheck = false): Response
7274
{
7375
$viewVars = ['success', 'data'];
7476
$this->controller->set('success', false);
@@ -85,7 +87,7 @@ protected function _outputMessage(string $template): Response
8587
$viewVars
8688
);
8789

88-
return parent::_outputMessage($template);
90+
return parent::_outputMessage($template, $skipControllerCheck);
8991
}
9092

9193
/**

0 commit comments

Comments
 (0)