Skip to content

Commit b968f94

Browse files
authored
Prevent explicit nullable type warning on modern PHP (#815)
* Make param type explicityly nullable * Actually, remove superflous arguments
1 parent 3fc66ec commit b968f94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MapsHooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static function onRegisterTags( array &$tags ) {
115115
return true;
116116
}
117117

118-
public static function onChangeTagsAllowedAdd( array &$allowedTags, array $tags, \User $user = null ) {
118+
public static function onChangeTagsAllowedAdd( array &$allowedTags ) {
119119
$allowedTags[] = 'maps-visual-edit';
120120
}
121121

0 commit comments

Comments
 (0)