Skip to content

fix: validated method#7530

Open
ChenRuiWang wants to merge 2 commits intohyperf:masterfrom
ChenRuiWang:master
Open

fix: validated method#7530
ChenRuiWang wants to merge 2 commits intohyperf:masterfrom
ChenRuiWang:master

Conversation

@ChenRuiWang
Copy link
Copy Markdown

修复 validated 方法在验证不存在的数据时可以跳过的问题。

  public function testValidatedThrowsOnFail()
  {
      $this->expectException(ValidationException::class);
      $v = new Validator($this->getContainer()->make(TranslatorContract::class), [], ['foo' => 'required']);
      $v->validated();
  }
image

#5904 #4720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant