ApiEmailUser: Mark the subject as a required parameter

This matches the behavior of Special:EmailUser.

Bug: T303862
Change-Id: I445a9388a573383ffbbe451be1f925045d15a556
This commit is contained in:
Func 2022-03-16 13:41:57 +08:00 committed by Ammarpad
parent 27ba493b70
commit 7be2e3e38d

View file

@ -95,7 +95,10 @@ class ApiEmailUser extends ApiBase {
ApiBase::PARAM_TYPE => 'string',
ApiBase::PARAM_REQUIRED => true
],
'subject' => null,
'subject' => [
ApiBase::PARAM_TYPE => 'string',
ApiBase::PARAM_REQUIRED => true
],
'text' => [
ApiBase::PARAM_TYPE => 'text',
ApiBase::PARAM_REQUIRED => true