This commit is contained in:
2020-10-30 02:01:59 +08:00
parent 2377935702
commit 0589976909
+3 -3
View File
@@ -96,10 +96,10 @@ abstract class Condition extends BaseObject
/** /**
* @param array $param * @param array|null $param
* @return array * @return array
*/ */
protected function format($param) protected function format(?array $param)
{ {
if (!is_array($param)) { if (!is_array($param)) {
return null; return null;
@@ -109,7 +109,7 @@ abstract class Condition extends BaseObject
if ($value === null) { if ($value === null) {
continue; continue;
} }
$value = Str::encode($value); $value = Str::encode((string)$value);
if (is_numeric($value)) { if (is_numeric($value)) {
$_tmp[] = Str::encode($value); $_tmp[] = Str::encode($value);
} else { } else {