Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment