Page MenuHomePhorge

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/includes/user/Hook/AutopromoteConditionHook.php b/includes/user/Hook/AutopromoteConditionHook.php
index 509638c9f19..ad1528038f8 100644
--- a/includes/user/Hook/AutopromoteConditionHook.php
+++ b/includes/user/Hook/AutopromoteConditionHook.php
@@ -20,7 +20,7 @@ interface AutopromoteConditionHook {
* @param string $type Condition type
* @param array $args Arguments
* @param User $user
- * @param array &$result Result of checking autopromote condition
+ * @param null|bool &$result Result of checking autopromote condition
* @return bool|void True or no return value to continue or false to abort
*/
public function onAutopromoteCondition( $type, $args, $user, &$result );
diff --git a/includes/user/UserGroupManager.php b/includes/user/UserGroupManager.php
index ff349ad5173..7a871ef8ba9 100644
--- a/includes/user/UserGroupManager.php
+++ b/includes/user/UserGroupManager.php
@@ -658,7 +658,6 @@ class UserGroupManager {
default:
$result = null;
$this->hookRunner->onAutopromoteCondition( $cond[0],
- // @phan-suppress-next-line PhanTypeMismatchArgument Type mismatch on pass-by-ref args
array_slice( $cond, 1 ), $user, $result );
if ( $result === null ) {
throw new InvalidArgumentException(

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:31 AM (12 h, 48 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227444
Default Alt Text
(1 KB)

Event Timeline