*/
public function getProfileID() {
if ( $this->profileID === false ) {
- return wfWikiID();
+ return WikiMap::getCurrentWikiDbDomain()->getId();
} else {
return $this->profileID;
}
abstract public function scopedProfileIn( $section );
/**
- * @param SectionProfileCallback &$section
+ * @param SectionProfileCallback|null &$section
*/
public function scopedProfileOut( SectionProfileCallback &$section = null ) {
$section = null;
* Get all usable outputs.
*
* @throws MWException
- * @return array Array of ProfilerOutput instances.
+ * @return ProfilerOutput[]
* @since 1.25
*/
private function getOutputs() {