X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FStubObject.php;h=067f11f63ee6169560425e07fc952d8f07b80f10;hp=0210ed9d6a813b1707c218a21d324952f9ff3d84;hb=f4ec592330517bc80e2ee351d0385e752f16e3fb;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e diff --git a/includes/StubObject.php b/includes/StubObject.php index 0210ed9d6a..067f11f63e 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -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 ) {