Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14746038
D13961.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
650 B
Referenced Files
None
Subscribers
None
D13961.diff
View Options
diff --git a/src/lint/linter/xhpast/rules/ArcanistPHPCompatibilityXHPASTLinterRule.php b/src/lint/linter/xhpast/rules/ArcanistPHPCompatibilityXHPASTLinterRule.php
--- a/src/lint/linter/xhpast/rules/ArcanistPHPCompatibilityXHPASTLinterRule.php
+++ b/src/lint/linter/xhpast/rules/ArcanistPHPCompatibilityXHPASTLinterRule.php
@@ -327,7 +327,7 @@
$ternaries = $root->selectDescendantsOfType('n_TERNARY_EXPRESSION');
foreach ($ternaries as $ternary) {
- $yes = $ternary->getChildByIndex(1);
+ $yes = $ternary->getChildByIndex(2);
if ($yes->getTypeName() === 'n_EMPTY') {
$this->raiseLintAtNode(
$ternary,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 9:37 AM (1 h, 41 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7028593
Default Alt Text
D13961.diff (650 B)
Attached To
Mode
D13961: Fix linter rule after XHPAST change
Attached
Detach File
Event Timeline
Log In to Comment