From fe54c76317861fa1727815b00224b56a99937faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 3 Jul 2021 09:39:59 +0200 Subject: [PATCH] allow DateTimeImmutable on getLastAddress --- src/Bundle/ChillPersonBundle/Entity/Person.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index 126565a03..d9c8ce2cf 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -753,7 +753,7 @@ class Person implements HasCenterInterface { return $this->addresses; } - public function getLastAddress(DateTime $from = null) + public function getLastAddress(\DateTimeInterface $from = null) { $from ??= new DateTime('now');