Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistExitExpressionXHPASTLinterRule.php
Context not available. | |||||
foreach ($unaries as $unary) { | foreach ($unaries as $unary) { | ||||
$operator = $unary->getChildByIndex(0)->getConcreteString(); | $operator = $unary->getChildByIndex(0)->getConcreteString(); | ||||
if (strtolower($operator) === 'exit') { | if (@strtolower($operator) === 'exit') { | ||||
if ($unary->getParentNode()->getTypeName() !== 'n_STATEMENT') { | if ($unary->getParentNode()->getTypeName() !== 'n_STATEMENT') { | ||||
$this->raiseLintAtNode( | $this->raiseLintAtNode( | ||||
$unary, | $unary, | ||||
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