Fix PPNode_Hash_Tree::getChildrenOfType return value
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 9 Dec 2015 17:56:30 +0000 (12:56 -0500)
committerReedy <reedy@wikimedia.org>
Thu, 17 Dec 2015 22:18:14 +0000 (22:18 +0000)
PPNode defines it as returning an array-type PPNode, not an array.

Change-Id: I9a6c5cea408aae449bfbf808d067837c4337c672

includes/parser/Preprocessor_Hash.php

index 4f12414..14292a5 100644 (file)
@@ -1745,7 +1745,7 @@ class PPNode_Hash_Tree implements PPNode {
                                $children[] = $child;
                        }
                }
-               return $children;
+               return new PPNode_Hash_Array( $children );
        }
 
        /**