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