PHP Fatal error: Declaration of methods must be compatible with...

Created on 15 August 2023, over 1 year ago

On running drush updb got this error:
PHP Fatal error: Declaration of Drupal\better_normalizers\Normalizer\FileEntityNormalizer::normalize($entity, $format = null, array $context = []) must be compatible with Drupal\hal\Normalizer\ContentEntityNormalizer::normalize($entity, $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /var/www/html/docroot/modules/contrib/better_normalizers/src/Normalizer/FileEntityNormalizer.php on line 41

Fatal error: Declaration of Drupal\better_normalizers\Normalizer\FileEntityNormalizer::normalize($entity, $format = null, array $context = []) must be compatible with Drupal\hal\Normalizer\ContentEntityNormalizer::normalize($entity, $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /var/www/html/docroot/modules/contrib/better_normalizers/src/Normalizer/FileEntityNormalizer.php on line 41
[warning] Drush command terminated abnormally.

🐛 Bug report
Status

Closed: duplicate

Component

Code

Created by

🇩🇪Germany msq

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

Comments & Activities

Production build 0.71.5 2024