When you download i.e. latest stable version of MediaWiki (atm: 1.26.2) in BagOStuff you miss makeKey, makeGlobalKay and makeKeyInternal methods. These methods are clearly documented in core/master:
Also given that I found it through incompatibility with extension Graph/Vega I'm willing to believe they should be included in master for some time at least (or that the docs and the extension are incompatible with master branch which sounds as very weird).