From 058707ef3874b501056fd6711f082e33866306d0 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 30 Sep 2016 15:57:33 -0700 Subject: [PATCH] Fix SectionProfileCallback type error Avoids "Argument 1 passed to Profiler::scopedProfileOut() must be an instance of ScopedCallback, SectionProfileCallback given" Change-Id: I92713de71df9722d8a5d7e5cd04460aff71cf096 --- includes/profiler/Profiler.php | 4 ++-- includes/profiler/SectionProfiler.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 297dcb20a1..db9c95b195 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -162,9 +162,9 @@ abstract class Profiler { abstract public function scopedProfileIn( $section ); /** - * @param ScopedCallback $section + * @param SectionProfileCallback $section */ - public function scopedProfileOut( ScopedCallback &$section = null ) { + public function scopedProfileOut( SectionProfileCallback &$section = null ) { $section = null; } diff --git a/includes/profiler/SectionProfiler.php b/includes/profiler/SectionProfiler.php index bbe139b0ae..7e3c398bb0 100644 --- a/includes/profiler/SectionProfiler.php +++ b/includes/profiler/SectionProfiler.php @@ -58,7 +58,7 @@ class SectionProfiler { /** * @param string $section - * @return ScopedCallback + * @return SectionProfileCallback */ public function scopedProfileIn( $section ) { $this->profileInInternal( $section ); -- 2.20.1