Page MenuHomePhabricator

Deprecated: Creation of dynamic property MediaWiki\Minerva\Skins\SkinMinerva::$growthExperimentsHomepageDiscoveryNoticeSeen is deprecated includes/Homepage/SiteNoticeGenerator.php
Closed, ResolvedPublic

Description

Deprecated: Creation of dynamic property MediaWiki\Minerva\Skins\SkinMinerva::$growthExperimentsHomepageDiscoveryNoticeSeen is deprecated in /extensions/GrowthExperiments/includes/Homepage/SiteNoticeGenerator.php on line 171

Seen on PHP 8.2 in MobileFrontend.

Event Timeline

Restricted Application added subscribers: Masumrezarock100, Aklapper. · View Herald Transcript
Tgr subscribed.

We should probably just turn SiteNoticeGenerator into a service so it can use its own property.

kostajh triaged this task as Medium priority.Feb 28 2023, 1:43 PM

Change 895528 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] Do not store state on another extension's object

https://gerrit.wikimedia.org/r/895528

kostajh added a subscriber: Etonkovidova.

@Etonkovidova can you please QA this one before it is in production next week? Thank you in advance!

Change 895528 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Do not store state on another extension's object

https://gerrit.wikimedia.org/r/895528

@Etonkovidova can you please QA this one before it is in production next week? Thank you in advance!

Sorry, missed the comment. Checked in wmf.27 and testwiki wmf.1 - the fix seems to be in place.