From 042bafe363b0702dc8ab377113f7de6748dc1882 Mon Sep 17 00:00:00 2001 From: Reedy Date: Thu, 30 Aug 2012 22:03:19 +0100 Subject: [PATCH] Make functions match definitions in Preprocessor interface Change-Id: I0bc1f5540bb7aabcd7e54edc180439446af979f4 --- includes/parser/Preprocessor_HipHop.hphp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/parser/Preprocessor_HipHop.hphp b/includes/parser/Preprocessor_HipHop.hphp index 2593b58529..8b71a1b573 100644 --- a/includes/parser/Preprocessor_HipHop.hphp +++ b/includes/parser/Preprocessor_HipHop.hphp @@ -51,7 +51,7 @@ class Preprocessor_HipHop implements Preprocessor { * @param $args array * @return PPCustomFrame_HipHop */ - function newCustomFrame( array $args ) { + function newCustomFrame( $args ) { return new PPCustomFrame_HipHop( $this, $args ); } @@ -109,7 +109,7 @@ class Preprocessor_HipHop implements Preprocessor { * @throws MWException * @return PPNode_HipHop_Tree */ - function preprocessToObj( string $text, int $flags = 0 ) { + function preprocessToObj( $text, $flags = 0 ) { wfProfileIn( __METHOD__ ); // Check cache. @@ -1066,11 +1066,12 @@ class PPFrame_HipHop implements PPFrame { * * @param $args PPNode_HipHop_Array|array|bool * @param $title Title|bool + * @param $indexOffset A number subtracted from the index attributes of the arguments * * @throws MWException * @return PPTemplateFrame_HipHop */ - function newChild( $args = false, $title = false ) { + function newChild( $args = false, $title = false, $indexOffset = 0 ) { $namedArgs = array(); $numberedArgs = array(); if ( $title === false ) { -- 2.20.1