mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
sa: Fix all issues related to PHP versions and static-analysis.
This commit is contained in:
@@ -28,7 +28,7 @@ class SocialActionNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
$this->render = $render;
|
||||
}
|
||||
|
||||
public function normalize($socialAction, ?string $format = null, array $context = [])
|
||||
public function normalize($socialAction, $format = null, array $context = [])
|
||||
{
|
||||
switch ($format) {
|
||||
case 'json':
|
||||
@@ -58,7 +58,7 @@ class SocialActionNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
}
|
||||
}
|
||||
|
||||
public function supportsNormalization($data, ?string $format = null, array $context = [])
|
||||
public function supportsNormalization($data, $format = null, array $context = [])
|
||||
{
|
||||
if ($data instanceof SocialAction && 'json' === $format) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user