From e70beaa32500ec261d19a49db200663e60883436 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 9 Feb 2011 17:36:25 +0000 Subject: [PATCH] Follow up to r81829. Poison var_dump, so that debug statements like r81671 can be easily detected. The three 'right' usages are * includes/Import.php * includes/api/ApiFormatDump.php * tests/parser/parserTestsParserHook.php --- tests/parser/parserTestsParserHook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/parser/parserTestsParserHook.php b/tests/parser/parserTestsParserHook.php index 936d0611f9..324b8e5c06 100644 --- a/tests/parser/parserTestsParserHook.php +++ b/tests/parser/parserTestsParserHook.php @@ -28,12 +28,12 @@ class ParserTestParserHook { static function setup( &$parser ) { - $parser->setHook( 'tag', array( __CLASS__, 'hook' ) ); + $parser->setHook( 'tag', array( __CLASS__, 'dumpHook' ) ); return true; } - static function hook( $in, $argv ) { + static function dumpHook( $in, $argv ) { ob_start(); var_dump( $in, -- 2.20.1