Problem/Motivation
Getting the below error while accessing /admin/structure/types/manage/article/form-display
Cannot unpack array with string keys in Drupal\yoast_seo\Plugin\Field\FieldWidget\YoastSeoWidget->Drupal\yoast_seo\Plugin\Field\FieldWidget\{closure}() (line 246 of modules/contrib/yoast_seo/src/Plugin/Field/FieldWidget/YoastSeoWidget.php).
Steps to reproduce
- Go to /admin/structure/types/manage/article/form-display
- Above error is encountered.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes

| Comment | File | Size | Author |
|---|---|---|---|
| #6 | yoast_seo-3381645_0.patch | 954 bytes | anjaliprasannan |
| Snip20230817_1.png | 511.37 KB | anjaliprasannan |
Issue fork yoast_seo-3381645
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:
Comments
Comment #2
anjaliprasannan commentedComment #4
anjaliprasannan commentedAdding patch that fixed the issue.
Comment #5
anjaliprasannan commentedComment #6
anjaliprasannan commentedComment #7
undersound3 commentedThanks for the patch!
Works here on drupal 9.5.11 and yoast_seo 8.x-2.0-alpha10
Comment #8
anjaliprasannan commentedComment #9
lavanyatalwar commentedUpdating MR for this patch.
Comment #10
lavanyatalwar commentedComment #11
kingdutchSorry for the sloppiness in using language features without declaring a PHP language version. The bit of code relied on a feature that was introduced in PHP 8.1.
As the only supported version of Drupal (10) requires at least PHP 8.1, where this operator is supported, I'm going to close this issue as "Won't fix".