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

Issue fork tealiumiq-3374553

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Mashir created an issue. See original summary.

mashir’s picture

Assigned: Unassigned » mashir
mashir’s picture

I have created the patch to resolve the issue and that is resolved my issue.

mashir’s picture

Assigned: mashir » Unassigned
Status: Active » Needs review
mashir’s picture

Renaming the patch as per the standard.

pvbergen’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm the issue on Drupal 10 and the proper resolution with the patch in #5.

schiavone made their first commit to this issue’s fork.

  • schiavone committed 96b07b93 on 8.x-1.x
    #3374553: Tealiumiq normalizer compatibility.
    
schiavone’s picture

Thanks everyone for working on this. The patch has been applied and included in the 8.x-1.3 release.

schiavone’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.