mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-29 10:12:41 +01:00
Fix linter rule after XHPAST change
Summary: Depends on D13959. Test Plan: Ran unit tests. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D13961
This commit is contained in:
parent
c22dfe61ed
commit
18e32d6ec7
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ final class ArcanistPHPCompatibilityXHPASTLinterRule
|
|||
|
||||
$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,
|
||||
|
|
Loading…
Reference in a new issue