PHP 8.2 Deprecation errors for dynamic properties

Created on 14 February 2024, 4 months ago
Updated 14 May 2024, about 1 month ago

Problem/Motivation

Experiencing deprecation errors due to missing properties declaration

Deprecated function: Creation of dynamic property Drupal\entity_language_fallback\Plugin\search_api\datasource\ContentEntityFallback::$languages is deprecated in Drupal\entity_language_fallback\Plugin\search_api\datasource\ContentEntityFallback->getLanguages() (line 151 of modules/contrib/entity_language_fallback/src/Plugin/search_api/datasource/ContentEntityFallback.php).

Deprecated function: Creation of dynamic property Drupal\entity_language_fallback\Plugin\search_api\datasource\ContentEntityFallback::$fallback_chain is deprecated in Drupal\entity_language_fallback\Plugin\search_api\datasource\ContentEntityFallback->getLanguages() (line 153 of modules/contrib/entity_language_fallback/src/Plugin/search_api/datasource/ContentEntityFallback.php).

It seems to be unfinished in https://www.drupal.org/project/entity_language_fallback/issues/3407832 ๐Ÿ› src/FallbackController.php error on PHP8.2, Deprecated function: Creation of dynamic property RTBC . So both these patches should go together.

Steps to reproduce

1. Update to PHP 8.2
2. run any search view using Entity Language Fallback

๐Ÿ› Bug report
Status

Needs review

Version

1.5

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine lyalyuk

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024