Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-04 16:53:31 +08:00
parent 011e0cd9b8
commit 00a53ba0f3
11 changed files with 38 additions and 85 deletions
+1 -2
View File
@@ -19,8 +19,7 @@ class RequiredValidator extends BaseValidator
*/
public function trigger(): bool
{
$param = $this->getParams();
if (!is_array($param) || !isset($param[$this->field])) {
if (!isset($this->params[$this->field])) {
return $this->addError('The param :attribute not exists');
} else {
return true;