Page MenuHomePhabricator

D8139.id18428.diff
No OneTemporary

D8139.id18428.diff

Index: src/parser/xhpast/api/XHPASTNode.php
===================================================================
--- src/parser/xhpast/api/XHPASTNode.php
+++ src/parser/xhpast/api/XHPASTNode.php
@@ -88,8 +88,20 @@
}
}
return $result;
+ case 'n_CONCATENATION_LIST':
+ $result = '';
+ foreach ($this->getChildren() as $child) {
+ if ($child->getTypeName() == 'n_OPERATOR') {
+ continue;
+ }
+ $result .= $child->evalStatic();
+ }
+ return $result;
default:
- throw new Exception("Unexpected node.");
+ throw new Exception(
+ pht(
+ 'Unexpected node during static evaluation, of type: %s',
+ $this->getTypeName()));
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, May 19, 7:39 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6302358
Default Alt Text
D8139.id18428.diff (778 B)

Event Timeline