[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Avoid call of static functions/access of static members from trait, it will be deprecated in php8.1
Closed, ResolvedPublic

Description

While updating phan to a new version - T289751 - I saw the following messages:

Access of static functions on traits:

includes\OutputPage.php:4154 PhanCompatibleAccessMethodOnTraitDefinition Calling static method \ResourceLoaderOOUIModule::getSkinThemeMap on a trait is deprecated in php 8.1, it should only be called on a class using the trait (in ResourceLoaderOOUIModule::getSkinThemeMap())

includes\page\ImagePage.php:1054 PhanCompatibleAccessMethodOnTraitDefinition Calling static method \MediaFileTrait::getImageLimitsFromOption on a trait is deprecated in php 8.1, it should only be called on a class using the trait (in MediaFileTrait::getImageLimitsFromOption($user, $optionName))

Access to static members of traits:

Deprecated: Accessing static trait property ResourceLoaderOOUIModule::$builtinSkinThemeMap is deprecated, it should only be accessed on a class using the trait in /code/w/includes/resourceloader/ResourceLoaderOOUIModule.php on line 77

Event Timeline

Florian renamed this task from Avoid call of static functions from trait, it will be deprecated in php8.1 to Avoid call of static functions/access of static members from trait, it will be deprecated in php8.1.Dec 17 2021, 2:59 PM
Florian updated the task description. (Show Details)
Florian added subscribers: Florian, Umherirrender.

Change 774971 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] phan: Remove PhanCompatibleAccessMethodOnTraitDefinition suppression

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

Krinkle assigned this task to Umherirrender.

Change 774971 merged by jenkins-bot:

[mediawiki/core@master] phan: Remove PhanCompatibleAccessMethodOnTraitDefinition suppression

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

Change 787862 had a related patch set uploaded (by MarkAHershberger; author: Umherirrender):

[mediawiki/core@REL1_38] phan: Remove PhanCompatibleAccessMethodOnTraitDefinition suppression

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

Change 787862 merged by jenkins-bot:

[mediawiki/core@REL1_38] phan: Remove PhanCompatibleAccessMethodOnTraitDefinition suppression

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