diff --git a/plugins/DirectMessage/DirectMessagePlugin.php b/plugins/DirectMessage/DirectMessagePlugin.php index 8febfa586b..e66785f20c 100644 --- a/plugins/DirectMessage/DirectMessagePlugin.php +++ b/plugins/DirectMessage/DirectMessagePlugin.php @@ -100,7 +100,7 @@ class DirectMessagePlugin extends Plugin * @param Command|bool &$result The resulting command object to be run. * @return bool hook value */ - public function onStartInterpretCommand(string $cmd, string $arg, User $user, &$result) : bool + public function onStartInterpretCommand(string $cmd, ?string $arg, User $user, &$result) : bool { $dm_cmds = ['d', 'dm'];