mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
use the date parameter in deprecated method getLastAddress
This commit is contained in:
parent
b4b67c6f0d
commit
1d8f25e2c8
@ -1184,7 +1184,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Use `getCurrentPersonAddress` instead
|
* @deprecated Use @link{Person::getCurrentPersonAddress} or @link{Person::getCurrentHouseholdAddress} instead
|
||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*
|
*
|
||||||
@ -1192,7 +1192,9 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
*/
|
*/
|
||||||
public function getLastAddress(?DateTime $from = null)
|
public function getLastAddress(?DateTime $from = null)
|
||||||
{
|
{
|
||||||
return $this->getCurrentPersonAddress();
|
return $this->getCurrentHouseholdAddress(
|
||||||
|
null !== $from ? DateTimeImmutable::createFromMutable($from) : null
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getLastName(): string
|
public function getLastName(): string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user