From: Derick Alangi Date: Thu, 13 Jun 2019 10:59:01 +0000 (+0100) Subject: htmlform: Reveal method getOOUI() is called from when spitting deprecation notice X-Git-Tag: 1.34.0-rc.0~1224^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=cb4b15786cce08c09e7ea7bbcc6eceb4b912aaf7;p=lhc%2Fweb%2Fwiklou.git htmlform: Reveal method getOOUI() is called from when spitting deprecation notice Bug: T225683 Change-Id: I654b2d165feeb77394c214ae29bfaa7a9694b46d --- diff --git a/includes/htmlform/fields/HTMLInfoField.php b/includes/htmlform/fields/HTMLInfoField.php index b4aab4a020..ab59ff0343 100644 --- a/includes/htmlform/fields/HTMLInfoField.php +++ b/includes/htmlform/fields/HTMLInfoField.php @@ -76,15 +76,15 @@ class HTMLInfoField extends HTMLFormField { } /** - * @param mixed $value + * @param mixed $value If not FieldLayout or subclass has been deprecated. * @return OOUI\FieldLayout * @since 1.32 */ public function getOOUI( $value ) { if ( !empty( $this->mParams['rawrow'] ) ) { if ( !( $value instanceof OOUI\FieldLayout ) ) { - wfDeprecated( "'default' parameter as a string when using 'rawrow' " . - "(must be a FieldLayout or subclass)", '1.32' ); + wfDeprecated( __METHOD__ . ": 'default' parameter as a string when using" . + "'rawrow' (must be a FieldLayout or subclass)", '1.32' ); } return $value; }