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.

CommentFileSizeAuthor
#2 3396599-php-8-2-deprecations.patch1.17 KBjamiep

Issue fork shorthand-3396599

Command icon 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

JamieP created an issue. See original summary.

jamiep’s picture

StatusFileSize
new1.17 KB
jamiep’s picture

Status: Active » Needs review

VladimirAus made their first commit to this issue’s fork.

vladimiraus’s picture

Version: 8.x-2.8 » 8.x-2.x-dev
Assigned: jamiep » Unassigned
Status: Needs review » Reviewed & tested by the community

Patch request looks good.
I created MR and added a CI.

vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.