Commit 1553465e authored by catch's avatar catch
Browse files

Issue #3232113 by daffie, larowlan, longwave: [Symfony 6] Add "static" type...

Issue #3232113 by daffie, larowlan, longwave: [Symfony 6] Add "static" type hint to the method Drupal\Component\HttpFoundation\SecuredRedirectResponse::setTargetUrl()
parent 6f7d2ef1
Loading
Loading
Loading
Loading
+1 −1
Changes for core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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));
    }