Differential D25030 Diff 82 src/lint/linter/xhpast/rules/ArcanistIsAShouldBeInstanceOfXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistIsAShouldBeInstanceOfXHPASTLinterRule.php
Context not available. | |||||
// parameter is either absent or literally `false`. | // parameter is either absent or literally `false`. | ||||
$allow_string = $parameters->getChildByIndex(2); | $allow_string = $parameters->getChildByIndex(2); | ||||
if (strtolower($allow_string->getConcreteString()) != 'false') { | if (@strtolower($allow_string->getConcreteString()) != 'false') { | ||||
continue; | continue; | ||||
} | } | ||||
} | } | ||||
Context not available. | |||||
switch ($class->getTypeName()) { | switch ($class->getTypeName()) { | ||||
case 'n_STRING_SCALAR': | case 'n_STRING_SCALAR': | ||||
$replacement = stripslashes( | $replacement = stripslashes( | ||||
substr($class->getConcreteString(), 1, -1)); | @substr($class->getConcreteString(), 1, -1)); | ||||
break; | break; | ||||
case 'n_VARIABLE': | case 'n_VARIABLE': | ||||
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