Differential D19749 Diff 47181 src/lint/linter/xhpast/rules/ArcanistPHPCompatibilityXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistPHPCompatibilityXHPASTLinterRule.php
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | foreach ($conditionals as $conditional) { | ||||
$type = 'interface'; | $type = 'interface'; | ||||
break; | break; | ||||
} | } | ||||
$params = $function->getChildOfType(1, 'n_CALL_PARAMETER_LIST'); | $params = $function->getChildOfType(1, 'n_CALL_PARAMETER_LIST'); | ||||
$symbol = $params->getChildByIndex(0); | $symbol = $params->getChildByIndex(0); | ||||
if (!$symbol->isStaticScalar()) { | if (!$symbol->isStaticScalar()) { | ||||
continue; | continue 2; | ||||
} | } | ||||
$symbol_name = $symbol->evalStatic(); | $symbol_name = $symbol->evalStatic(); | ||||
if (!idx($whitelist[$type], $symbol_name)) { | if (!idx($whitelist[$type], $symbol_name)) { | ||||
$whitelist[$type][$symbol_name] = array(); | $whitelist[$type][$symbol_name] = array(); | ||||
} | } | ||||
$span = $conditional | $span = $conditional | ||||
▲ Show 20 Lines • Show All 389 Lines • Show Last 20 Lines |