Skip to content

Commit

Permalink
修正验证异常类
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Sep 21, 2024
1 parent 738d378 commit 790d0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/think/exception/ValidateException.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ValidateException extends \RuntimeException
public function __construct($error)
{
$this->error = $error;
$this->message = is_array($error) ? implode(PHP_EOL, $error) : $error;
$this->message = is_array($error) ? json_encode($error) : $error;
}

/**
Expand Down

0 comments on commit 790d0e4

Please sign in to comment.