public function withoutZoneIdentifier(): self
    {
        if (!$this->has_zone_identifier) {
            return $this;
        }

        [$ipv6, ] = explode('%', substr((string) $this->host, 1, -1));

        return static::createFromIp($ipv6);
    }
public function withoutZoneIdentifier(): self
    {
        if (!$this->has_zone_identifier) {
            return $this;
        }

        [$ipv6, ] = explode('%', substr((string) $this->host, 1, -1));

        return static::createFromIp($ipv6);
    }
public function withoutZoneIdentifier ( ) : self { if ( ! $ this -> has_zone_identifier ) { return $ this ; } [ $ ipv6 , ] = explode ( '%' , substr ( ( string ) $ this -> host , 1 , - 1 ) ) ; return static :: createFromIp ( $ ipv6 ) ; }
Returns an host without its zone identifier according to RFC6874.

This method MUST retain the state of the current instance, and return
an instance without the host zone identifier according to RFC6874

@see http://tools.ietf.org/html/rfc6874#section-4

@return static
Returns an host without its zone identifier according to RFC6874 .