src/Environment/Environment.php
public function getProtocolVersion()
    {
        $version = null;
        if (isset($this->server['SERVER_PROTOCOL'])) {
            $protocol = $this->server['SERVER_PROTOCOL'];
            list(,$version) = explode("/", $protocol);
        }

        return $version;
    }
public function getProtocolVersion()
    {
        $version = null;
        if (isset($this->server['SERVER_PROTOCOL'])) {
            $protocol = $this->server['SERVER_PROTOCOL'];
            list(,$version) = explode("/", $protocol);
        }

        return $version;
    }
public function getProtocolVersion ( ) { $ version = null ; if ( isset ( $ this -> server [ 'SERVER_PROTOCOL' ] ) ) { $ protocol = $ this -> server [ 'SERVER_PROTOCOL' ] ; list ( , $ version ) = explode ( "/" , $ protocol ) ; } return $ version ; }
Get protocol version

@return string|null
Get protocol version