Skip to content

Commit

Permalink
Merge pull request #7925 from cakephp/ADmad-patch-1
Browse files Browse the repository at this point in the history
Exception hook methods should be protected.
  • Loading branch information
markstory authored Oct 11, 2024
2 parents f1a52f6 + 00e9e85 commit 822f373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/development/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ a ``missingWidget()`` controller method, and CakePHP would use

class ErrorController extends AppController
{
public function missingWidget(MissingWidgetException $error)
protected function missingWidget(MissingWidgetException $error)
{
// You can prepare additional template context or trap errors.
}
Expand Down

0 comments on commit 822f373

Please sign in to comment.