This commit is contained in:
2021-03-24 17:57:08 +08:00
parent 2610267aba
commit 6df0cb4003
11 changed files with 576 additions and 532 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class TypesOfValidator extends BaseValidator
if (!is_string($value) || is_numeric($value)) {
return $this->addError('The ' . $this->field . ' not is serialize data.');
}
if (false === unserialize($value)) {
if (false === swoole_unserialize($value)) {
return $this->addError('The ' . $this->field . ' not is serialize data.');
}
return true;