eee
This commit is contained in:
@@ -47,7 +47,6 @@ class TypesOfValidator extends BaseValidator
|
||||
*/
|
||||
public function jsonFormat(?string $value): bool
|
||||
{
|
||||
var_dump(json_validate($value), $value);
|
||||
return json_validate($value);
|
||||
}
|
||||
|
||||
@@ -66,7 +65,6 @@ class TypesOfValidator extends BaseValidator
|
||||
*/
|
||||
public function stringFormat(mixed $value): bool
|
||||
{
|
||||
var_dump(is_string($value), $value);
|
||||
return is_string($value);
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,6 @@ class Validator extends BaseValidator
|
||||
if (isset($this->validators[$field])) {
|
||||
$validator = $this->validators[$field];
|
||||
foreach ($validator as $value) {
|
||||
var_dump($value, $attribute);
|
||||
if (!call_user_func($value, $attribute)) {
|
||||
return $this->addError($field, 'field :attribute data format error.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user