Fix deprecation notices on ProviderRepositoryDecorator

Created on 30 July 2025, 17 days ago

Problem/Motivation

The following warnings display on ProviderRepositoryDecorator

Deprecated: Optional parameter $key_value_factory declared before required parameter $module_handler is implicitly treated as a required parameter in /var/www/html/web/modules/contrib/oembed_providers/src/OEmbed/ProviderRepositoryDecorator.php on line 116

Deprecated: Optional parameter $logger_factory declared before required parameter $module_handler is implicitly treated as a required parameter in /var/www/html/web/modules/contrib/oembed_providers/src/OEmbed/ProviderRepositoryDecorator.php on line 116

Proposed resolution

Switch parameter order on constructor, also avoid constructing calling methods to avoid serialization issues, and we can also avoid calling the logger by leveraging https://www.drupal.org/node/3395436

📌 Task
Status

Needs review

Version

2.2

Component

Code

Created by

🇪🇸Spain pcambra Asturies

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

Comments & Activities

Production build 0.71.5 2024