Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/ArcanistTestXHPASTLintSwitchHook.php
Context not available. | |||||
public function checkSwitchToken(XHPASTToken $token) { | public function checkSwitchToken(XHPASTToken $token) { | ||||
if ($token->getTypeName() == 'T_STRING') { | if ($token->getTypeName() == 'T_STRING') { | ||||
switch (strtolower($token->getValue())) { | switch (@strtolower($token->getValue())) { | ||||
case 'throw_exception': | case 'throw_exception': | ||||
return true; | return true; | ||||
} | } | ||||
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