<?php

use HarUtils\HttpPacket;
namespace HarUtils;

class HarHttpRequest extends HttpPacket
{
    public function getMethod()
    {
        return $this->packet['method'];
    }
    
    public function getQueryString()
    {
        return $this->packet['queryString'];
    }
    
    public function getUrl()
    {
        return $this->packet['url'];
    }
    
}



<?php

use HarUtils\HttpPacket;
namespace HarUtils;

class HarHttpRequest extends HttpPacket
{
    public function getMethod()
    {
        return $this->packet['method'];
    }
    
    public function getQueryString()
    {
        return $this->packet['queryString'];
    }
    
    public function getUrl()
    {
        return array_key_exists('url', $this->packet) ? $this->packet['url'] : null;
    }
    
}



Fix error when url field is null in entry
Fix error when url field is null in entry
