Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 704ebda

Browse files
committed
Ensure UriInterface is cast to string in Redirect
- Casts the `$uri` argument to a string when creating the `Location` header.
1 parent ae653c8 commit 704ebda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Response/RedirectResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct($uri, $status = 302, array $headers = [])
4141
));
4242
}
4343

44-
$headers['location'] = [$uri];
44+
$headers['location'] = [(string) $uri];
4545
parent::__construct('php://temp', $status, $headers);
4646
}
4747
}

0 commit comments

Comments
 (0)