mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-02-01 05:57:16 +00:00
sa: Fix all issues related to PHP versions and static-analysis.
This commit is contained in:
@@ -33,7 +33,7 @@ class DoctrineExistingEntityNormalizer implements DenormalizerInterface
|
||||
$this->serializerMetadataFactory = $serializerMetadataFactory;
|
||||
}
|
||||
|
||||
public function denormalize($data, string $type, ?string $format = null, array $context = [])
|
||||
public function denormalize($data, $type, $format = null, array $context = [])
|
||||
{
|
||||
if (array_key_exists(AbstractNormalizer::OBJECT_TO_POPULATE, $context)) {
|
||||
return $context[AbstractNormalizer::OBJECT_TO_POPULATE];
|
||||
@@ -43,7 +43,7 @@ class DoctrineExistingEntityNormalizer implements DenormalizerInterface
|
||||
->find($data['id']);
|
||||
}
|
||||
|
||||
public function supportsDenormalization($data, string $type, ?string $format = null)
|
||||
public function supportsDenormalization($data, $type, $format = null)
|
||||
{
|
||||
if (false === is_array($data)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user