TealiumiqNormalizer::supportsDenormalization function must be compatible with NormalizerBase::supportsDenormalization($data, string $type, ?string $format = null, array $context = [])

Created on 14 July 2023, over 1 year ago
Updated 14 February 2024, 9 months ago

Problem/Motivation

After Drupal 10 upgrade site is showing temporary unavailable and while checking error log find below error:
TealiumiqNormalizer::supportsDenormalization($data, $type, $format = null) must be compatible with Drupal\serialization\Normalizer\NormalizerBase::supportsDenormalization($data, string $type, ?string $format = null, array $context = []): bool

Steps to reproduce

1. Drush version - 11.6.0
2. Drupal Core - 10.0.9
3. TealiumIQ version - Latest Stable version

Site is not working and in drush command showing below error:

PHP Fatal error: Declaration of Drupal\tealiumiq\Normalizer\TealiumiqNormalizer::supportsDenormalization($data, $type, $format = null) must be compatible with Drupal\serialization\Normalizer\NormalizerBase::supportsDenormalization($data, string $type, ?string $format = null, array $context = []): bool in /app/docroot/modules/contrib/tealiumiq/src/Normalizer/TealiumiqNormalizer.php on line 42

Proposed resolution

Change the format of TealiumiqNormalizer::supportsDenormalization as same as NormalizerBase::supportsDenormalization

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Mashir

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024