X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FDeprecatedGlobal.php;h=14329d3213d90a1b264fb7958dd2758c0f422e03;hb=1d41a1a7345c38a87c047f06c5f75d3dace43a29;hp=3ba2211a4e2ac089177fab47e5a553c4f87a1d12;hpb=67b2557da1f2cebbc900e1963fa27e9e307bec8a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DeprecatedGlobal.php b/includes/DeprecatedGlobal.php index 3ba2211a4e..14329d3213 100644 --- a/includes/DeprecatedGlobal.php +++ b/includes/DeprecatedGlobal.php @@ -34,7 +34,11 @@ class DeprecatedGlobal extends StubObject { $this->version = $version; } + // @codingStandardsIgnoreStart + // PSR2.Methods.MethodDeclaration.Underscore + // PSR2.Classes.PropertyDeclaration.ScopeMissing function _newObject() { + /* Put the caller offset for wfDeprecated as 6, as * that gives the function that uses this object, since: * 1 = this function ( _newObject ) @@ -50,4 +54,5 @@ class DeprecatedGlobal extends StubObject { wfDeprecated( '$' . $this->global, $this->version, false, 6 ); return $this->realValue; } + // @codingStandardsIgnoreEnd }