Skip to content

Commit

Permalink
Fix linter rule after XHPAST change
Browse files Browse the repository at this point in the history
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
  • Loading branch information
joshuaspence authored and Joshua Spence committed Aug 27, 2015
1 parent c22dfe6 commit 18e32d6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -327,7 +327,7 @@ private function lintPHP53Features(XHPASTNode $root) {

$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,
Expand Down

0 comments on commit 18e32d6

Please sign in to comment.