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

Created on 19 July 2023, 11 months ago
Updated 26 October 2023, 8 months 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.69.0 2024