Incompatible with the latest migrate_plus 6.0.x

Created on 17 August 2022, over 2 years ago
Updated 7 June 2023, over 1 year ago

Problem/Motivation

migrate_google_sheets break when upgrading migrate_plus to 6.0.0.

The migration list page and the execution yield this error:

Fatal error: Declaration of Drupal\migrate_google_sheets\Plugin\migrate_plus\data_parser\GoogleSheets::getSourceData($url) must be compatible with Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json::getSourceData(string $url): array in /app/web/modules/contrib/migrate_google_sheets/src/Plugin/migrate_plus/data_parser/GoogleSheets.php on line 35

Steps to reproduce

1. Update migrate_plus to 6.0.0
2. Visit the migration page

Proposed resolution

See attached patched file.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ivanbueno

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.71.5 2024