wiki.techinc.nl/includes/htmlform/HTMLFormFieldRequiredOptionsException.php
James D. Forrester 8e940c4f21 Standardise all our class alias deprecation comments for ease of grepping
Change-Id: I7f85d931d3b79da23e87b4e5692b2e14be8fcaa0
2024-03-19 20:11:29 +00:00

27 lines
659 B
PHP

<?php
namespace MediaWiki\HTMLForm;
use InvalidArgumentException;
/**
* @newable
* @stable to extend
*/
class HTMLFormFieldRequiredOptionsException extends InvalidArgumentException {
/**
* @stable to call
*
* @param HTMLFormField $field
* @param array $missing
*/
public function __construct( HTMLFormField $field, array $missing ) {
parent::__construct( sprintf( "Form type `%s` expected the following parameters to be set: %s",
get_class( $field ),
implode( ', ', $missing ) ) );
}
}
/** @deprecated class alias since 1.42 */
class_alias( HTMLFormFieldRequiredOptionsException::class, 'HTMLFormFieldRequiredOptionsException' );