fix validate error

This commit is contained in:
joyqi
2025-06-05 15:09:03 +08:00
parent db8a3f7f3e
commit 7ef2c08a96

View File

@@ -334,6 +334,6 @@ class Validate
*/
public function required(): bool
{
return !empty($this->data[$this->key]);
return array_key_exists($this->key, $this->data);
}
}