Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistSlownessXHPASTLinterRule.php
Context not available. | |||||
continue; | continue; | ||||
} | } | ||||
$name = strtolower($strstr->getChildByIndex(0)->getConcreteString()); | $name = @strtolower($strstr->getChildByIndex(0)->getConcreteString()); | ||||
if ($name === 'strstr' || $name === 'strchr') { | if ($name === 'strstr' || $name === 'strchr') { | ||||
$this->raiseLintAtNode( | $this->raiseLintAtNode( | ||||
$strstr, | $strstr, | ||||
Context not available. | |||||
continue; | continue; | ||||
} | } | ||||
$name = strtolower($strpos->getChildByIndex(0)->getConcreteString()); | $name = @strtolower($strpos->getChildByIndex(0)->getConcreteString()); | ||||
if ($name === 'strpos') { | if ($name === 'strpos') { | ||||
$this->raiseLintAtNode( | $this->raiseLintAtNode( | ||||
$strpos, | $strpos, | ||||
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