From f8b8b2dd8d033f51c45152fc3e0a9c12a3a5eddb Mon Sep 17 00:00:00 2001 From: Luc Wollants Date: Fri, 23 Aug 2024 15:26:59 +0200 Subject: [PATCH] Handle null type --- tests/Http/Parameters/ArrayParameterBagAdapterTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Http/Parameters/ArrayParameterBagAdapterTest.php b/tests/Http/Parameters/ArrayParameterBagAdapterTest.php index d6a72876..33a41263 100644 --- a/tests/Http/Parameters/ArrayParameterBagAdapterTest.php +++ b/tests/Http/Parameters/ArrayParameterBagAdapterTest.php @@ -514,8 +514,10 @@ private function assertArrayContentsAreEqual(array $expected, array $actual): vo } - private function assertDateTimeEquals(DateTimeImmutable $expected, DateTimeImmutable $actual): void + private function assertDateTimeEquals(DateTimeImmutable $expected, ?DateTimeImmutable $actual): void { + $this->assertNotNull($actual); + $this->assertEquals( $expected->format(DateTime::ATOM), $actual->format(DateTime::ATOM)