mediawiki-extensions-Revisi.../tests/phan/stubs/betafeatures.php
WMDE-Fisch a79fd1624a Fix phan checks
Phan now can run and pass without BetaFeatures extension beeing installed.

Change-Id: I0bb8433fc9f882ff8e021785aba78f707cec00a1
2017-04-06 09:24:36 +02:00

20 lines
489 B
PHP

<?php
/**
* Minimal set of classes necessary to fulfill needs of parts of the RevisionSlider relying on
* the BetaFeatures extension.
* @codingStandardsIgnoreFile
*/
class BetaFeatures {
/**
* Check if a user has a beta feature enabled.
*
* @param User $user The user to check
* @param string $feature The key passed back to BetaFeatures
* from the GetBetaFeaturePreferences hook
* @return bool
*/
public static function isFeatureEnabled( $user, $feature ) {
}
}