fix misc phpstan issues

This commit is contained in:
2025-12-22 18:26:35 +01:00
parent 35d91762d3
commit 55c11c7f04
20 changed files with 62 additions and 78 deletions

View File

@@ -81,8 +81,8 @@ class PersonJsonNormalizer implements NormalizerAwareInterface, NormalizerInterf
...$normalizedData,
'centers' => $this->normalizer->normalize($this->centerResolverManager->resolveCenters($data), $format, $context),
'altNames' => $this->normalizeAltNames($data->getAltNames()),
'current_household_id' => $household ? $this->normalizer->normalize($household->getId(), $format, $context) : null,
'current_residential_addresses' => $currentResidentialAddresses ? $this->normalizer->normalize($currentResidentialAddresses, $format, $context) : null,
'current_household_id' => null !== $household ? $this->normalizer->normalize($household->getId(), $format, $context) : null,
'current_residential_addresses' => $this->normalizer->normalize($currentResidentialAddresses, $format, $context),
];
}