[HttpFoundation] Fixed Request::getPort returns incorrect value under IPv6

Fixed issue with Request::getPort method returning an incorrect value when the HTTP_HOST header is a IPv6 address.
bug #11144 [HttpFoundation] Fixed Request::getPort returns incorrect value under IPv6 (kicken)

This PR was merged into the 2.3 branch.

Discussion
----------

[HttpFoundation] Fixed Request::getPort returns incorrect value under IPv6

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

2a0e8e3 [HttpFoundation] Fixed Request::getPort returns incorrect value under IPv6