mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
sa: Fix all issues related to PHP versions and static-analysis.
This commit is contained in:
@@ -17,11 +17,13 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||
|
||||
class AccompanyingPeriodParticipationNormalizer implements NormalizerAwareInterface, NormalizerInterface
|
||||
{
|
||||
protected ?NormalizerInterface $normalizer = null;
|
||||
private ?NormalizerInterface $normalizer = null;
|
||||
|
||||
public function normalize($participation, ?string $format = null, array $context = [])
|
||||
/**
|
||||
* @param AccompanyingPeriodParticipation $participation
|
||||
*/
|
||||
public function normalize($participation, $format = null, array $context = [])
|
||||
{
|
||||
/** @var AccompanyingPeriodParticipation $participation */
|
||||
return [
|
||||
'id' => $participation->getId(),
|
||||
'startDate' => $this->normalizer->normalize($participation->getStartDate(), $format),
|
||||
@@ -35,8 +37,9 @@ class AccompanyingPeriodParticipationNormalizer implements NormalizerAwareInterf
|
||||
$this->normalizer = $normalizer;
|
||||
}
|
||||
|
||||
public function supportsNormalization($data, ?string $format = null): bool
|
||||
public function supportsNormalization($data, $format = null): bool
|
||||
{
|
||||
// @TODO Fix this.
|
||||
return false;
|
||||
|
||||
return $data instanceof AccompanyingPeriodParticipation;
|
||||
|
Reference in New Issue
Block a user