Follow-up 6d4e1547: Hard-deprecate these functions
[lhc/web/wiklou.git] / includes / StubObject.php
index 0210ed9..067f11f 100644 (file)
@@ -19,6 +19,7 @@
  *
  * @file
  */
+use Wikimedia\ObjectFactory;
 
 /**
  * Class to implement stub globals, which are globals that delay loading the
@@ -55,8 +56,6 @@ class StubObject {
        protected $params;
 
        /**
-        * Constructor.
-        *
         * @param string $global Name of the global variable.
         * @param string|callable $class Name of the class of the real object
         *                               or a factory function to call
@@ -88,7 +87,7 @@ class StubObject {
         * infinite loop when unstubbing an object or to avoid reference parameter
         * breakage.
         *
-        * @param object $obj Object to check.
+        * @param object &$obj Object to check.
         * @return void
         */
        public static function unstub( &$obj ) {