feat: formatListOfBackticks에서 인자로 BackedEnum 사용 가능

This commit is contained in:
2023-07-07 10:57:50 +00:00
parent 1e0875ae73
commit 5a565c2678
+3
View File
@@ -694,6 +694,9 @@ class Util extends \utilphp\util
}
//.이 들어간 경우에는 분리해서 묶어야함.
return join(',', array_map(function($value){
if($value instanceof \BackedEnum){
$value = $value->value;
}
$value = preg_replace('/\s/', '', $value);
if(strpos($value, '.') !== false){
$value = explode('.', $value);