'mActorId',
];
- /**
- * @var string[]
- * @var string[] Cached results of getAllRights()
- */
- protected static $mAllRights = false;
-
/** Cache variables */
// @{
/** @var int */
return $this->$name;
} else {
wfLogWarning( 'tried to get non-visible property' );
- return null;
+ $null = null;
+ return $null;
}
}
// overwriting mBlockedby, surely?
$this->load();
+ // @phan-suppress-next-line PhanAccessMethodInternal It's the only allowed use
$block = MediaWikiServices::getInstance()->getBlockManager()->getUserBlock(
$this,
$fromReplica
*
* @param string $permissions,... Permissions to test
* @return bool True if user is allowed to perform *any* of the given actions
+ * @suppress PhanCommentParamOnEmptyParamList Cannot make variadic due to HHVM bug, T191668#5263929
*/
public function isAllowedAny() {
return MediaWikiServices::getInstance()
* ->getPermissionManager()->userHasAllRights(...) instead
* @param string $permissions,... Permissions to test
* @return bool True if the user is allowed to perform *all* of the given actions
+ * @suppress PhanCommentParamOnEmptyParamList Cannot make variadic due to HHVM bug, T191668#5263929
*/
public function isAllowedAll() {
return MediaWikiServices::getInstance()
/**
* Get a list of all available permissions.
*
- * @deprecated since 1.34, use MediaWikiServices::getInstance()->getPermissionManager()
- * ->getAllPermissions() instead
+ * @deprecated since 1.34, use PermissionManager::getAllPermissions() instead
*
* @return string[] Array of permission names
*/
* @return bool
*/
public function addNewUserLogEntryAutoCreate() {
+ wfDeprecated( __METHOD__, '1.27' );
$this->addNewUserLogEntry( 'autocreate' );
return true;