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