sa: Fix all issues related to PHP versions and static-analysis.

This commit is contained in:
Pol Dellaiera
2021-12-21 11:58:58 +01:00
parent b3823161af
commit b743475761
25 changed files with 79 additions and 81 deletions

View File

@@ -31,7 +31,7 @@ class ThirdPartyNormalizer implements NormalizerAwareInterface, NormalizerInterf
/**
* @param ThirdParty $thirdParty
*/
public function normalize($thirdParty, ?string $format = null, array $context = [])
public function normalize($thirdParty, $format = null, array $context = [])
{
return [
'type' => 'thirdparty',
@@ -49,7 +49,7 @@ class ThirdPartyNormalizer implements NormalizerAwareInterface, NormalizerInterf
];
}
public function supportsNormalization($data, ?string $format = null)
public function supportsNormalization($data, $format = null)
{
return $data instanceof ThirdParty && 'json' === $format;
}