On PHP 8.2, we're getting the following deprecation errors when adding shorthand stories via an entity reference/Inline Entity Form field:
Deprecated function: Creation of dynamic property Drupal\shorthand\Plugin\Field\FieldWidget\StorySelectFieldWidget::$shorthandStories is deprecated in Drupal\shorthand\Plugin\Field\FieldWidget\StorySelectFieldWidget->__construct() (line 41 of modules/contrib/shorthand/src/Plugin/Field/FieldWidget/StorySelectFieldWidget.php).
Deprecated function: Creation of dynamic property Drupal\shorthand\Plugin\Field\FieldWidget\PublishConfigurationSelectFieldWidget::$shorthandPublishingConfigurations is deprecated in Drupal\shorthand\Plugin\Field\FieldWidget\PublishConfigurationSelectFieldWidget->__construct() (line 41 of modules/contrib/shorthand/src/Plugin/Field/FieldWidget/PublishConfigurationSelectFieldWidget.php).
Patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3396599-php-8-2-deprecations.patch | 1.17 KB | jamiep |
Issue fork shorthand-3396599
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
jamiep commentedComment #3
jamiep commentedComment #6
vladimirausPatch request looks good.
I created MR and added a CI.
Comment #9
vladimiraus