Call to deprecated method getContent()

Created on 30 August 2021, almost 3 years ago
Updated 16 November 2023, 7 months ago

Problem/Motivation

Upgrade status module throws this warning Call to deprecated method getContent() of class League\Csv\AbstractCsv in csv_serialization/src/Encoder/CsvEncoder.php.

Steps to reproduce

  • Install latest vanilla drupal 8.x
  • Install 8.x-2.0 version of csv serialization module
  • Install upgrade_status module
  • From upgrade_status report page, Scan csv_serialization module and you will see the deprecation error.

Proposed resolution

It looks like the getContent() function of League\Csv\AbstractCsv class will be removed in next major release. And the way csv_serialization requires league/csv in composer.json, Anyone requiring the csv_serialization module will automatically fetch the major release of league/csv and thereby could get affected with these deprecations.

Temporary solution: We could lock the league/csv to 9.7.1 in composer.json and create a release to be safe from the errors.
: Well, It will be to review the deprecations and use proper code from new release of league/csv

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

4.0

Component

Code

Created by

🇮🇳India kunalkursija Mumbai

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024