From 2d895ae698efe2405f21da0c4000463f78da9173 Mon Sep 17 00:00:00 2001 From: Yuriev Yuri Date: Sat, 15 Apr 2023 14:46:37 +0100 Subject: [PATCH] Update Time.php --- src/Core/Response/DTO/Time.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Response/DTO/Time.php b/src/Core/Response/DTO/Time.php index e1302aa1..1150236e 100644 --- a/src/Core/Response/DTO/Time.php +++ b/src/Core/Response/DTO/Time.php @@ -139,10 +139,10 @@ public static function initFromResponse(array $response): self (float)$response['finish'], (float)$response['duration'], (float)$response['processing'], - (float)$response['operating'], + isset($response['operating']) ? (float)$response['operating'] : 0.0, new DateTimeImmutable($response['date_start']), new DateTimeImmutable($response['date_finish']), $response['operating_reset_at'] ?? null ); } -} \ No newline at end of file +}