X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=includes%2Fspecialpage%2FFormSpecialPage.php;h=fb69f63e83ae8c69972c41fc621b953d001624d2;hb=017b37f35ae7f4858d253458ede06326025e2ddb;hp=d1c6aea294d9cbee308c02ab1c95ede2bec0b443;hpb=2b14cc0096de48b4863ea7daee55951701f6dc99;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/FormSpecialPage.php b/includes/specialpage/FormSpecialPage.php index d1c6aea294..fb69f63e83 100644 --- a/includes/specialpage/FormSpecialPage.php +++ b/includes/specialpage/FormSpecialPage.php @@ -31,7 +31,7 @@ abstract class FormSpecialPage extends SpecialPage { /** * The sub-page of the special page. - * @var string + * @var string|null */ protected $par = null; @@ -150,10 +150,11 @@ abstract class FormSpecialPage extends SpecialPage { /** * Process the form on POST submission. * @param array $data - * @param HTMLForm $form + * @param HTMLForm|null $form + * @suppress PhanCommentParamWithoutRealParam Many implementations don't have $form * @return bool|string|array|Status As documented for HTMLForm::trySubmit. */ - abstract public function onSubmit( array $data /* $form = null */ ); + abstract public function onSubmit( array $data /* HTMLForm $form = null */ ); /** * Do something exciting on successful processing of the form, most likely to show a @@ -166,7 +167,7 @@ abstract class FormSpecialPage extends SpecialPage { /** * Basic SpecialPage workflow: get a form, send it to the user; get some data back, * - * @param string $par Subpage string if one was specified + * @param string|null $par Subpage string if one was specified */ public function execute( $par ) { $this->setParameter( $par ); @@ -188,7 +189,7 @@ abstract class FormSpecialPage extends SpecialPage { /** * Maybe do something interesting with the subpage parameter - * @param string $par + * @param string|null $par */ protected function setParameter( $par ) { $this->par = $par;