htmlform: Reveal method getOOUI() is called from when spitting deprecation notice
authorDerick Alangi <alangiderick@gmail.com>
Thu, 13 Jun 2019 10:59:01 +0000 (11:59 +0100)
committerD3r1ck01 <xsavitar.wiki@aol.com>
Fri, 28 Jun 2019 23:52:55 +0000 (23:52 +0000)
Bug: T225683
Change-Id: I654b2d165feeb77394c214ae29bfaa7a9694b46d

includes/htmlform/fields/HTMLInfoField.php

index b4aab4a..ab59ff0 100644 (file)
@@ -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;
                }