mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
upgrade php-cs 3.49
This commit is contained in:
@@ -41,7 +41,7 @@ class ResidentialAddressRepository extends ServiceEntityRepository
|
||||
->getSingleScalarResult();
|
||||
}
|
||||
|
||||
public function buildQueryFindCurrentResidentialAddresses(Person $person, \DateTimeImmutable $at = null): QueryBuilder
|
||||
public function buildQueryFindCurrentResidentialAddresses(Person $person, ?\DateTimeImmutable $at = null): QueryBuilder
|
||||
{
|
||||
$date = $at ?? new \DateTimeImmutable('today');
|
||||
$qb = $this->createQueryBuilder('ra');
|
||||
@@ -66,7 +66,7 @@ class ResidentialAddressRepository extends ServiceEntityRepository
|
||||
/**
|
||||
* @return array|ResidentialAddress[]|null
|
||||
*/
|
||||
public function findCurrentResidentialAddressByPerson(Person $person, \DateTimeImmutable $at = null): array
|
||||
public function findCurrentResidentialAddressByPerson(Person $person, ?\DateTimeImmutable $at = null): array
|
||||
{
|
||||
return $this->buildQueryFindCurrentResidentialAddresses($person, $at)
|
||||
->select('ra')
|
||||
|
Reference in New Issue
Block a user