Fix SectionProfileCallback type error
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Sep 2016 22:57:33 +0000 (15:57 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 30 Sep 2016 22:57:44 +0000 (15:57 -0700)
Avoids "Argument 1 passed to Profiler::scopedProfileOut() must
be an instance of ScopedCallback, SectionProfileCallback given"

Change-Id: I92713de71df9722d8a5d7e5cd04460aff71cf096

includes/profiler/Profiler.php
includes/profiler/SectionProfiler.php

index 297dcb2..db9c95b 100644 (file)
@@ -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;
        }
 
index bbe139b..7e3c398 100644 (file)
@@ -58,7 +58,7 @@ class SectionProfiler {
 
        /**
         * @param string $section
-        * @return ScopedCallback
+        * @return SectionProfileCallback
         */
        public function scopedProfileIn( $section ) {
                $this->profileInInternal( $section );