Commit 50d61427 authored by catch's avatar catch
Browse files

Issue #3239744 by alexpott, daffie:...

Issue #3239744 by alexpott, daffie: \Drupal\Core\Field\WidgetBase::getFilteredDescription() can cause deprecations on PHP 8.1
parent 51166f11
Loading
Loading
Loading
Loading
+1 −1
Changes for core/lib/Drupal/Core/Field/WidgetBase.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -611,7 +611,7 @@ protected function isDefaultValueWidget(FormStateInterface $form_state) {
   *   The filtered field description, with tokens replaced.
   */
  protected function getFilteredDescription() {
    return FieldFilteredMarkup::create(\Drupal::token()->replace($this->fieldDefinition->getDescription()));
    return FieldFilteredMarkup::create(\Drupal::token()->replace((string) $this->fieldDefinition->getDescription()));
  }

}