유틸리티 함수들 일부 수정. 랜덤값 뽑기 함수 하나 더 추가
This commit is contained in:
1 parent
a3d27c634e
commit
f8ead0093d
3 files changed
+41
-13
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ class Json
|
||||
$value = Util::eraseNullValue($value);
|
||||
}
|
||||
|
||||
if(($flag & static::EMPTY_ARRAY_IS_DICT) && $value === []){
|
||||
if($value === [] && ($flag & static::EMPTY_ARRAY_IS_DICT)){
|
||||
$value = (object)null;
|
||||
}
|
||||
return json_encode($value, $rawFlag);
|
||||
|
||||
Reference in new issue
Block a user