Background of the issue:
I am trying to enable WP_DEBUG to improve my own plugins. Mine are fine.
Symptoms:
I expected to see no deprecated warnings coming from WPML on the admin panel. Instead, I got several deprecated warnings related to WPML components, such as:
Thank you for creating with WordPress.
Version 6.8.1
Deprecated: WPMLCoreComponentTranslationDomainLinksHandleUpdateTranslation::adjustOnlyOnce(): Implicitly marking parameter $triggerItem as nullable is deprecated, the explicit nullable type must be used instead in /blablabla/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/Core/Component/Translation/Domain/Links/HandleUpdateTranslation.php on line 75
Deprecated: WPMLLegacyComponentTranslationDomainLinksAdjustLinks::adjust(): Implicitly marking parameter $triggerItem as nullable is deprecated, the explicit nullable type must be used instead in /blablabla/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/Legacy/Component/Translation/Domain/Links/AdjustLinks.php on line 22
Deprecated: WPMLLegacyComponentTranslationDomainLinksAdjustLinks::adjustLinksInStringTranslations(): Implicitly marking parameter $triggerItem as nullable is deprecated, the explicit nullable type must be used instead in /blablabla/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/Legacy/Component/Translation/Domain/Links/AdjustLinks.php on line 76
Deprecated: WPMLLegacyComponentTranslationDomainLinksAdjustLinks::revertNameInTranslatedLinks(): Implicitly marking parameter $triggerItem as nullable is deprecated, the explicit nullable type must be used instead in /blablabla/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/Legacy/Component/Translation/Domain/Links/AdjustLinks.php on line 127
Deprecated: WPMLCoreComponentTranslationDomainLinksAdjustLinksInterface::adjust(): Implicitly marking parameter $triggerItem as nullable is deprecated, the explicit nullable type must be used instead in /blablabla/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/Core/Component/Translation/Domain/Links/AdjustLinksInterface.php on line 12
Questions:
Please update WPML to fix these. While production systems should not have WP_DEBUG enabled, it annoys us plugin developers who use WPML 🙂