Problem/Motivation
After updating to migrate_plus 6.0.4 there is an php error with the function declaration getSourceData.
PHP Fatal error: Declaration of Drupal\migrate_youtube\Plugin\migrate_plus\data_parser\YoutubeApiJson::getSourceData(string $url): array must be compatible with Drupal\migrate_plus\Plugin\migrate_plus\data_parser\Json::getSourceData(string $url, string|int $item_selector = '') in /var/www/html/platforme-mediation/drupal/www/modules/contrib/migrate_youtube/src/Plugin/migrate_plus/data_parser/YoutubeApiJson.php on line 71
Steps to reproduce
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_function_declaration_3470245.patch | 743 bytes | smavri |
Issue fork migrate_youtube-3470245
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3470245-php-fatal-error
compare
- 3470245-
changes, plain diff MR !1
Comments
Comment #2
smavri commentedHere is a patch
Comment #3
b2f commentedHello,
Since I we know each others and worked together before, you are now co-maintainer of this project.
Comment #4
deepali sardana commentedComment #6
deepali sardana commentedComment #8
anfor commentedComment #11
anfor commented