Fatal Error String Data Normalizer

Created on 2 November 2023, about 1 year ago
Updated 8 March 2024, 10 months ago

Problem/Motivation

When trying to import configuration after upgrading to Drupal 10 get this fatal error:

PHP Fatal error: Declaration of Drupal\rest_absolute_urls\Normalizer\StringDataNormalizer::normalize($object, $format = null, array $context = []) must be compatible with Drupal\serialization\Normalizer\PrimitiveDataNormalizer::normalize($object, $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /var/www/html/docroot/modules/contrib/rest_absolute_urls/src/Normalizer/StringDataNormalizer.php on line 40

Steps to reproduce

Update site to Drupal 10

Proposed resolution

Simple patch to add return declarations.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇺🇸United States jeffreysmattson

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

Comments & Activities

Production build 0.71.5 2024