From: Brad Jorsch Date: Wed, 9 Dec 2015 17:56:30 +0000 (-0500) Subject: Fix PPNode_Hash_Tree::getChildrenOfType return value X-Git-Tag: 1.31.0-rc.0~8640^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=2f95b102f564efedce90c3fca45cb27d117ce26c;p=lhc%2Fweb%2Fwiklou.git Fix PPNode_Hash_Tree::getChildrenOfType return value PPNode defines it as returning an array-type PPNode, not an array. Change-Id: I9a6c5cea408aae449bfbf808d067837c4337c672 --- diff --git a/includes/parser/Preprocessor_Hash.php b/includes/parser/Preprocessor_Hash.php index 4f124147e2..14292a59b1 100644 --- a/includes/parser/Preprocessor_Hash.php +++ b/includes/parser/Preprocessor_Hash.php @@ -1745,7 +1745,7 @@ class PPNode_Hash_Tree implements PPNode { $children[] = $child; } } - return $children; + return new PPNode_Hash_Array( $children ); } /**