Problem/Motivation
Using php 8.2 I am getting deprecated functions notices.
Deprecated function: Creation of dynamic property Drupal\entitygroupfield\Plugin\Field\FieldWidget\EntityGroupFieldAutocompleteWidget::$fieldParents is deprecated in Drupal\Component\Serialization\PhpSerialize::decode() (line 21 of core/lib/Drupal/Component/Serialization/PhpSerialize.php).
Deprecated function: Creation of dynamic property Drupal\entitygroupfield\Plugin\Field\FieldWidget\EntityGroupFieldAutocompleteWidget::$realItemCount is deprecated in Drupal\Component\Serialization\PhpSerialize::decode() (line 21 of core/lib/Drupal/Component/Serialization/PhpSerialize.php).
Deprecated function: Creation of dynamic property Drupal\entitygroupfield\Plugin\Field\FieldWidget\EntityGroupFieldAutocompleteWidget::$fieldWrapperId is deprecated in Drupal\Component\Serialization\PhpSerialize::decode() (line 21 of core/lib/Drupal/Component/Serialization/PhpSerialize.php).
Deprecated function: Creation of dynamic property Drupal\entitygroupfield\Plugin\Field\FieldWidget\EntityGroupFieldAutocompleteWidget::$fieldIdPrefix is deprecated in Drupal\entitygroupfield\Plugin\Field\FieldWidget\EntityGroupFieldWidgetBase->formMultipleElements() (line 593 of modules/contrib/entitygroupfield/src/Plugin/Field/FieldWidget/EntityGroupFieldWidgetBase.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3363829-6.patch | 956 bytes | dww |
Issue fork entitygroupfield-3363829
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:
- 3363829-php-8.2-deprecated
changes, plain diff MR !9
Comments
Comment #2
aleixComment #4
aleixThis will make things easier on D10
Comment #5
aleixAdding the patch for composer purposes
Comment #6
dwwCool, thanks for opening this and for supplying the patch!
The patch is no longer applying to the module (neither 2.0.x nor 1.0.x branches). #5 also introduces some whitespace bugs. Here's a new patch. Let's see what the bot has to say now. 😅
Comment #9
dwwHrm, well, PHP 8.2 support doesn't seem to be very far along upstream in Group module, either. 😅
But I see no reason not to commit this. Pushed to 2.0.x, cherry-picked to 1.0.x and pushed.
Thanks again,
-Derek