Anomie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/257950

Change subject: Fix PPNode_Hash_Tree::getChildrenOfType return value
......................................................................

Fix PPNode_Hash_Tree::getChildrenOfType return value

PPNode defines it as returning an array-type PPNode, not an array.

Change-Id: I9a6c5cea408aae449bfbf808d067837c4337c672
---
M includes/parser/Preprocessor_Hash.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/50/257950/1

diff --git a/includes/parser/Preprocessor_Hash.php 
b/includes/parser/Preprocessor_Hash.php
index 4f12414..14292a5 100644
--- a/includes/parser/Preprocessor_Hash.php
+++ b/includes/parser/Preprocessor_Hash.php
@@ -1745,7 +1745,7 @@
                                $children[] = $child;
                        }
                }
-               return $children;
+               return new PPNode_Hash_Array( $children );
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/257950
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9a6c5cea408aae449bfbf808d067837c4337c672
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to