diff --git a/core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php b/core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php index 7d4a3f7754..37c01a1b56 100644 --- a/core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php +++ b/core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php @@ -53,7 +53,7 @@ protected function fromResponse(RedirectResponse $response) { /** * {@inheritdoc} */ - public function setTargetUrl($url) { + public function setTargetUrl($url): static { if (!$this->isSafe($url)) { throw new \InvalidArgumentException(sprintf('It is not safe to redirect to %s', $url)); }