Replace &$this with $this in MediaWiki/core hook system