mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 23:04:58 +00:00
sa: Fix all issues related to PHP versions and static-analysis.
This commit is contained in:
@@ -40,7 +40,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
|
||||
$this->userRender = $userRender;
|
||||
}
|
||||
|
||||
public function normalize($user, ?string $format = null, array $context = [])
|
||||
public function normalize($user, $format = null, array $context = [])
|
||||
{
|
||||
/** @var User $user */
|
||||
$userJobContext = array_merge(
|
||||
@@ -77,7 +77,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
|
||||
];
|
||||
}
|
||||
|
||||
public function supportsNormalization($data, ?string $format = null, array $context = []): bool
|
||||
public function supportsNormalization($data, $format = null, array $context = []): bool
|
||||
{
|
||||
if ($data instanceof User && ('json' === $format || 'docgen' === $format)) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user