Creation of dynamic property $fieldName is deprecated

Created on 6 May 2024, 5 months ago
Updated 13 May 2024, 5 months ago

Creation of dynamic property $fieldName is deprecated

When I edit the node after update it show me

Deprecated function: Creation of dynamic property Drupal\questions_answers\Plugin\Field\FieldWidget\QuestionsAnswersWidget::$fieldName is deprecated in Drupal\questions_answers\Plugin\Field\FieldWidget\QuestionsAnswersWidget->formElement() (line 85 of modules/contrib/questions_answers/src/Plugin/Field/FieldWidget/QuestionsAnswersWidget.php).

this on edit, on line 85 I check

$this->fieldName = $this->fieldDefinition->getName();

this is written once I comment this and clear cache error is gone

so It is fixed or need to change something else

🐛 Bug report
Status

Needs review

Version

1.14

Component

Code

Created by

🇮🇳India 21kPiyush

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024