dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix wrong return value in Preprocessor::getChildrenOfType
[lhc/web/wiklou.git]
/
includes
/
parser
/
Preprocessor_HipHop.hphp
diff --git
a/includes/parser/Preprocessor_HipHop.hphp
b/includes/parser/Preprocessor_HipHop.hphp
index
d7b0716
..
4ef5ca9
100644
(file)
--- a/
includes/parser/Preprocessor_HipHop.hphp
+++ b/
includes/parser/Preprocessor_HipHop.hphp
@@
-1758,7
+1758,7
@@
class PPNode_HipHop_Tree implements PPNode {
$children = array();
for ( $child = $this->firstChild; $child; $child = $child->nextSibling ) {
if ( isset( $child->name ) && $child->name === $name ) {
- $children[] = $
name
;
+ $children[] = $
child
;
}
}
return $children;