Differential D25030 Diff 82 src/lint/linter/xhpast/rules/ArcanistInvalidDefaultParameterXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistInvalidDefaultParameterXHPASTLinterRule.php
Context not available. | |||||
} | } | ||||
$default_is_null = $default->getTypeName() == 'n_SYMBOL_NAME' && | $default_is_null = $default->getTypeName() == 'n_SYMBOL_NAME' && | ||||
strtolower($default->getConcreteString()) == 'null'; | @strtolower($default->getConcreteString()) == 'null'; | ||||
switch (strtolower($type->getConcreteString())) { | switch (@strtolower($type->getConcreteString())) { | ||||
case 'array': | case 'array': | ||||
if ($default->getTypeName() == 'n_ARRAY_LITERAL') { | if ($default->getTypeName() == 'n_ARRAY_LITERAL') { | ||||
break; | break; | ||||
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