8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f8efc1 commit e73dff3Copy full SHA for e73dff3
src/Symfony/Component/HttpFoundation/Test/Constraint/ResponseHeaderLocationSame.php
@@ -53,11 +53,11 @@ private function toFullUrl(string $url): string
53
}
54
55
if (str_starts_with($url, '//')) {
56
- return "{$this->request->getScheme()}:{$url}";
+ return sprintf('%s:%s', $this->request->getScheme(), $url);
57
58
59
if (str_starts_with($url, '/')) {
60
- return "{$this->request->getSchemeAndHttpHost()}{$url}";
+ return $this->request->getSchemeAndHttpHost().$url;
61
62
63
return $url;
0 commit comments