* other-message - Message to use instead of htmlform-selectorother-other for
* the 'other' message.
* other - Raw text to use for the 'other' message
+ *
+ * The old name of autocomplete-data[-messages] was autocomplete[-messages] which is still
+ * recognized but deprecated since MediaWiki 1.29 since it conflicts with how autocomplete is
+ * used in HTMLTextField.
*/
class HTMLAutoCompleteSelectField extends HTMLTextField {
- protected $autocomplete = [];
+ protected $autocompleteData = [];
- function __construct( $params ) {
+ public function __construct( $params ) {
$params += [
'require-match' => false,
];