Change-Id: I0bc1f5540bb7aabcd7e54edc180439446af979f4
* @param $args array
* @return PPCustomFrame_HipHop
*/
* @param $args array
* @return PPCustomFrame_HipHop
*/
- function newCustomFrame( array $args ) {
+ function newCustomFrame( $args ) {
return new PPCustomFrame_HipHop( $this, $args );
}
return new PPCustomFrame_HipHop( $this, $args );
}
* @throws MWException
* @return PPNode_HipHop_Tree
*/
* @throws MWException
* @return PPNode_HipHop_Tree
*/
- function preprocessToObj( string $text, int $flags = 0 ) {
+ function preprocessToObj( $text, $flags = 0 ) {
wfProfileIn( __METHOD__ );
// Check cache.
wfProfileIn( __METHOD__ );
// Check cache.
*
* @param $args PPNode_HipHop_Array|array|bool
* @param $title Title|bool
*
* @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
*/
*
* @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 ) {
$namedArgs = array();
$numberedArgs = array();
if ( $title === false ) {