* ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
* the "client-ip" key.
*
- * @return string The client IP address
+ * @return string|null The client IP address
*
* @see getClientIps()
* @see http://en.wikipedia.org/wiki/X-Forwarded-For
* If your reverse proxy uses a different header name than "X-Forwarded-Port",
* configure it via "setTrustedHeaderName()" with the "client-port" key.
*
- * @return string
+ * @return int|string can be a string if fetched from the server bag
*/
public function getPort()
{
public function getContent($asResource = false)
{
$currentContentIsResource = is_resource($this->content);
- if (PHP_VERSION_ID < 50600 && false === $this->content) {
+ if (\PHP_VERSION_ID < 50600 && false === $this->content) {
throw new \LogicException('getContent() can only be called once when using the resource return type and PHP below 5.6.');
}