version = $version; } // phpcs:ignore 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 ) * 2 = StubObject::_unstub * 3 = StubObject::_call * 4 = StubObject::__call * 5 = DeprecatedGlobal:: * 6 = Actual function using the global. * Of course its theoretically possible to have other call * sequences for this method, but that seems to be * rather unlikely. */ wfDeprecated( '$' . $this->global, $this->version, false, 6 ); return parent::_newObject(); } }