Drupal 10 support: Declaration of EntityReferenceRevisionItemNormalizer::normalize() must be compatible with parent

Created on 19 July 2023, almost 2 years ago
Updated 26 October 2023, over 1 year ago

Problem/Motivation

The following exception is thrown:

<?php

\Drupal\entity_reference_revisions\Normalizer\EntityReferenceRevisionItemNormalizer::normalize($field_item, $format = NULL, array $context = array()) must be compatible with parent \Drupal\hal\Normalizer\EntityReferenceItemNormalizer::normalize($field_item, $format = NULL, array $context = []): array|string|int|float|bool|\ArrayObject|NULL

Steps to reproduce

Test the site on a PHP 8.1 installation using the contrib version of the hal module (see #3254331: [Symfony 6] Add "array|string|int|float|bool|\ArrayObject|null" to all Normalizer classes that implement the method ::normalize() )

Proposed resolution

Remaining tasks

User interface changes

API changes

None

Data model changes

🐛 Bug report
Status

Postponed

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024