π¨π¦Canada bcdev
I keep seeing this issue on a staging site as well, did you get any traction on this issue?
π | CSV Serialization | CsvEncoder::encode must be compatible with Symfony\Component\Serializer\Encoder\EncoderInterface::encode
π¨π¦Canada bcdev
I was getting issues upgrading this module to 3.0 when using a D9 install (currently moving to D10 but needed to upgrade this first). I was seeing the same error when running a drush updatedb:
Unable to decode output into JSON: Syntax error
Fatal error: Declaration of Drupal\csv_serialization\Encoder\CsvEncoder::encode($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/composer/csv_serialization/src/Encoder/CsvEncoder.php on line 125
Using the composer require drupal/csv_serialization:^2.0 || ^3.0
command allowed me to get past this and I'm assuming that this will work for D10 also once I start that upgrade process.