We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b22d27 commit 0a4e151Copy full SHA for 0a4e151
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