Merge "Adjust type hints in htmlform related classes"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 5 Jul 2019 21:32:55 +0000 (21:32 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 5 Jul 2019 21:32:55 +0000 (21:32 +0000)
1  2 
includes/htmlform/HTMLForm.php

@@@ -180,10 -180,12 +180,11 @@@ class HTMLForm extends ContextSource 
        protected $mMessagePrefix;
  
        /** @var HTMLFormField[] */
 -      protected $mFlatFields;
 -
 -      protected $mFieldTree;
 +      protected $mFlatFields = [];
 +      protected $mFieldTree = [];
        protected $mShowReset = false;
        protected $mShowSubmit = true;
+       /** @var string[] */
        protected $mSubmitFlags = [ 'primary', 'progressive' ];
        protected $mShowCancel = false;
        protected $mCancelTarget;