Skip to content

Commit

Permalink
Handle null type
Browse files Browse the repository at this point in the history
  • Loading branch information
LucWollants committed Aug 23, 2024
1 parent 66429c4 commit f8b8b2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Http/Parameters/ArrayParameterBagAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f8b8b2d

Please sign in to comment.