Commit 5df7d612 authored by Paulo Henrique Cota Starling's avatar Paulo Henrique Cota Starling Committed by jrockowitz
Browse files

Issue #3213647 by paulocs, guilhermevp: getException() method is deprecated since Symfony 4.4

parent 7606870c
Loading
Loading
Loading
Loading
+1 −1
Changes for src/EventSubscriber/WebformDefaultExceptionHtmlSubscriber.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -263,7 +263,7 @@ class WebformDefaultExceptionHtmlSubscriber extends DefaultExceptionHtmlSubscrib
  public function onException(ExceptionEvent $event) {
    // Only handle 403 exception.
    // @see \Drupal\webform\EventSubscriber\WebformExceptionHtmlSubscriber::on403
    $exception = $event->getException();
    $exception = $event->getThrowable();
    if ($exception instanceof HttpExceptionInterface && $exception->getStatusCode() === 403) {
      parent::onException($event);
    }