From cb4b15786cce08c09e7ea7bbcc6eceb4b912aaf7 Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Thu, 13 Jun 2019 11:59:01 +0100 Subject: [PATCH] htmlform: Reveal method getOOUI() is called from when spitting deprecation notice Bug: T225683 Change-Id: I654b2d165feeb77394c214ae29bfaa7a9694b46d --- includes/htmlform/fields/HTMLInfoField.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.20.1