Differential D25030 Diff 82 src/lint/linter/xhpast/rules/ArcanistReusedAsIteratorXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistReusedAsIteratorXHPASTLinterRule.php
Context not available. | |||||
$calls = $body->selectDescendantsOfType('n_FUNCTION_CALL'); | $calls = $body->selectDescendantsOfType('n_FUNCTION_CALL'); | ||||
foreach ($calls as $call) { | foreach ($calls as $call) { | ||||
$name = strtolower($call->getChildByIndex(0)->getConcreteString()); | $name = @strtolower($call->getChildByIndex(0)->getConcreteString()); | ||||
if ($name === 'empty' || $name === 'isset') { | if ($name === 'empty' || $name === 'isset') { | ||||
$params = $call | $params = $call | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0