Skip to content

Commit

Permalink
PHP 5 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jul 4, 2019
1 parent 6c49a0c commit adcdd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Request.php
Expand Up @@ -1037,7 +1037,7 @@ public function getPort()
$pos = strrpos($host, ':');
}

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

Expand Down

0 comments on commit adcdd93

Please sign in to comment.