Skip to content

Commit bf9b5f9

Browse files
committed
Use identical comparison for schema validation.
1 parent fc1c9be commit bf9b5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ public function getHttpHost()
983983
$scheme = $this->getScheme();
984984
$port = $this->getPort();
985985

986-
if (('http' == $scheme && 80 == $port) || ('https' == $scheme && 443 == $port)) {
986+
if (('http' === $scheme && 80 == $port) || ('https' === $scheme && 443 == $port)) {
987987
return $this->getHost();
988988
}
989989

0 commit comments

Comments
 (0)