Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13978784
D17435.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
489 B
Referenced Files
None
Subscribers
None
D17435.diff
View Options
diff --git a/src/parser/xhpast/api/XHPASTNode.php b/src/parser/xhpast/api/XHPASTNode.php
--- a/src/parser/xhpast/api/XHPASTNode.php
+++ b/src/parser/xhpast/api/XHPASTNode.php
@@ -269,8 +269,8 @@
$body = $namespace->getChildByIndex(1);
if ($body->getTypeName() != 'n_EMPTY') {
- if ($body->containsDescendant($this)) {
- return self::getNamespaceName($namespace);
+ if (!$body->containsDescendant($this)) {
+ continue;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 20, 12:57 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728270
Default Alt Text
D17435.diff (489 B)
Attached To
Mode
D17435: Minor fix presumably identified by PHPStan
Attached
Detach File
Event Timeline
Log In to Comment