diff --git a/src/Request.php b/src/Request.php index 9edb5ef..c8ce2b2 100644 --- a/src/Request.php +++ b/src/Request.php @@ -50,12 +50,12 @@ public function time(int $precision = 2): float public function size(): int { - return $this->request['response']['_transferSize']; + return $this->request['response']['_transferSize'] ?? 0; } public function uncompressedSize(): int { - return $this->request['response']['content']['size']; + return $this->request['response']['content']['size'] ?? 0; } public function timings(int $precision = 2): array