Made a new SectionProfileCallback class that extends ScopedCallback
[lhc/web/wiklou.git] / includes / profiler / ProfilerStub.php
index b400601..1d77cc0 100644 (file)
@@ -34,7 +34,7 @@ class ProfilerStub extends Profiler {
        }
 
        public function scopedProfileIn( $section ) {
-               return null;
+               return new ScopedCallback( null ); // no-op
        }
 
        public function getFunctionStats() {