mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	sa: Fix all issues related to PHP versions and static-analysis.
This commit is contained in:
		| @@ -38,7 +38,7 @@ class DiscriminatedObjectDenormalizer implements ContextAwareDenormalizerInterfa | ||||
|      */ | ||||
|     public const TYPE = '@multi'; | ||||
|  | ||||
|     public function denormalize($data, string $type, ?string $format = null, array $context = []) | ||||
|     public function denormalize($data, $type, $format = null, array $context = []) | ||||
|     { | ||||
|         foreach ($context[self::ALLOWED_TYPES] as $localType) { | ||||
|             if ($this->denormalizer->supportsDenormalization($data, $localType, $format)) { | ||||
| @@ -54,7 +54,7 @@ class DiscriminatedObjectDenormalizer implements ContextAwareDenormalizerInterfa | ||||
|             'ALLOWED_TYPES: %s', implode(', ', $context[self::ALLOWED_TYPES]))); | ||||
|     } | ||||
|  | ||||
|     public function supportsDenormalization($data, string $type, ?string $format = null, array $context = []) | ||||
|     public function supportsDenormalization($data, $type, $format = null, array $context = []) | ||||
|     { | ||||
|         if (self::TYPE !== $type) { | ||||
|             return false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user