From ce4492b081494c5395be68f5da39f709000c1b20 Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Tue, 11 Feb 2025 21:51:54 -0500 Subject: [PATCH] fixes that --- tests/Handler/CloudWatchTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Handler/CloudWatchTest.php b/tests/Handler/CloudWatchTest.php index 1ca98f1..089936b 100644 --- a/tests/Handler/CloudWatchTest.php +++ b/tests/Handler/CloudWatchTest.php @@ -466,9 +466,9 @@ class CloudWatchTest extends TestCase /** @var int|null */ $latestTime = null; - /** @var LogRecord $logEvent */ + /** @var array $logEvent */ foreach ($data['logEvents'] as $logEvent) { - $logTimestamp = $logEvent->datetime->getTimestamp(); + $logTimestamp = $logEvent['timestamp']; if (!$earliestTime || $logTimestamp < $earliestTime) { $earliestTime = $logTimestamp;