Fatal error: Declaration of Drupal\views_data_export_phpspreadsheet\Encoder\XlsEncoder::encode(): string must be compatible with Symfony\Component\Serializer\Encoder\EncoderInterface::encode()

Created on 29 January 2025, 2 months ago

Problem/Motivation

In Drupal 9.5.11, I get the following error after upgrading to 2.0.5

                                                                                                                                                                                                                                                                                                                   
  Unable to decode output into JSON: Syntax error                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                   
  Fatal error: Declaration of Drupal\views_data_export_phpspreadsheet\Encoder\XlsEncoder::encode(mixed $data, string $format, array $context = []): string must be compatible with Symfony\Component\Serializer\Encoder\EncoderInterface::encode($data, $format, array $context = []) in /var/www/html/web/modules/contrib/views_data_export_phpspreadsheet/src/Encoder/XlsEncoder.php on line 78                                    

Steps to reproduce

Proposed resolution

Fix method arguments

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇷Greece dimitriskr

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024