Loading core/modules/jsonapi/src/Normalizer/EntityDenormalizerBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager, Ent /** * {@inheritdoc} */ public function supportsNormalization($data, $format = NULL) { public function supportsNormalization($data, $format = NULL): bool { return FALSE; } Loading core/modules/jsonapi/src/Serializer/Serializer.php +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public function denormalize($data, $type, $format = NULL, array $context = []) { /** * {@inheritdoc} */ public function supportsNormalization($data, $format = NULL, array $context = []) { public function supportsNormalization($data, $format = NULL, array $context = []): bool { return $this->selfSupportsNormalization($data, $format, $context) || $this->fallbackNormalizer->supportsNormalization($data, $format, $context); } Loading core/modules/serialization/src/Normalizer/NormalizerBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ abstract class NormalizerBase implements SerializerAwareInterface, CacheableNorm /** * {@inheritdoc} */ public function supportsNormalization($data, $format = NULL) { public function supportsNormalization($data, $format = NULL): bool { // If we aren't dealing with an object or the format is not supported return // now. if (!is_object($data) || !$this->checkFormat($format)) { Loading core/modules/serialization/tests/serialization_test/src/SerializationTestNormalizer.php +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ public function normalize($object, $format = NULL, array $context = []) { * @return bool * Returns TRUE if the normalizer can handle the request. */ public function supportsNormalization($data, $format = NULL) { public function supportsNormalization($data, $format = NULL): bool { return static::$format === $format; } Loading Loading
core/modules/jsonapi/src/Normalizer/EntityDenormalizerBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager, Ent /** * {@inheritdoc} */ public function supportsNormalization($data, $format = NULL) { public function supportsNormalization($data, $format = NULL): bool { return FALSE; } Loading
core/modules/jsonapi/src/Serializer/Serializer.php +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public function denormalize($data, $type, $format = NULL, array $context = []) { /** * {@inheritdoc} */ public function supportsNormalization($data, $format = NULL, array $context = []) { public function supportsNormalization($data, $format = NULL, array $context = []): bool { return $this->selfSupportsNormalization($data, $format, $context) || $this->fallbackNormalizer->supportsNormalization($data, $format, $context); } Loading
core/modules/serialization/src/Normalizer/NormalizerBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ abstract class NormalizerBase implements SerializerAwareInterface, CacheableNorm /** * {@inheritdoc} */ public function supportsNormalization($data, $format = NULL) { public function supportsNormalization($data, $format = NULL): bool { // If we aren't dealing with an object or the format is not supported return // now. if (!is_object($data) || !$this->checkFormat($format)) { Loading
core/modules/serialization/tests/serialization_test/src/SerializationTestNormalizer.php +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ public function normalize($object, $format = NULL, array $context = []) { * @return bool * Returns TRUE if the normalizer can handle the request. */ public function supportsNormalization($data, $format = NULL) { public function supportsNormalization($data, $format = NULL): bool { return static::$format === $format; } Loading