Skip to content
Snippets Groups Projects
Commit 3a79e753 authored by Larry Garfield's avatar Larry Garfield
Browse files

Proper type hint.

parent 2bc27d0f
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -40,7 +40,7 @@ protected function isHtmlRequestEvent(GetResponseEvent $event) {
* @param GetResponseEvent $event
* The Event to process.
*/
public function onAccessDeniedException(Event $event) {
public function onAccessDeniedException(GetResponseEvent $event) {
if ($this->isHtmlRequestEvent($event) && $event->getException() instanceof AccessDeniedHttpException) {
$event->setResponse(new Response('Access Denied', 403));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment