Skip to content

Commit adcdd93

Browse files
committed
PHP 5 compat
1 parent 6c49a0c commit adcdd93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ public function getPort()
10371037
$pos = strrpos($host, ':');
10381038
}
10391039

1040-
if (false !== $pos && '' !== $port = substr($host, $pos + 1)) {
1040+
if (false !== $pos && $port = substr($host, $pos + 1)) {
10411041
return (int) $port;
10421042
}
10431043

0 commit comments

Comments
 (0)