PHP fatal error on preRenderDate

Created on 4 February 2023, almost 2 years ago
Updated 5 February 2023, almost 2 years ago

Problem/Motivation

Hey everyone
Here is to report back an error. The module display of dates are shown correctly at the page display but a PHP fatal error logged while browsing pages. The error does not noticed from the Drupal watchdog report.

PHP Fatal error:  Declaration of Drupal\calendar_systems\Element\CalendarSystemsDate::preRenderDate(array $element): array must be compatible with Drupal\Core\Render\Element\Date::preRenderDate($element) in /home/drupal10/modules/calendar_systems/src/Element/CalendarSystemsDate.php on line 13

Steps to reproduce

The error generated in:
Drupal 10.0.3
PHP 8.1.14

Keep the good work,

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇷Iran tsotoodeh

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

Comments & Activities

Production build 0.71.5 2024