framework icon indicating copy to clipboard operation
framework copied to clipboard

Samae validation rule is not

Open khairy-pelcro opened this issue 2 years ago • 0 comments

  • Laravel Version: 8.x
  • PHP Version: 7.4

Description:

when using the same validation rule with nullable fields it always gives a validation error with fields does not match if another field is null

Steps To Reproduce:

$v = new Validator($trans, ['foo' => 'bar', 'baz' => null], ['foo' => 'Same:baz']);
$this->assertTrue($v->passes());

khairy-pelcro avatar Aug 10 '22 19:08 khairy-pelcro

Hey there,

Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so, please open up a new issue and we'll help you out.

Thanks!

driesvints avatar Aug 11 '22 07:08 driesvints

Hey @driesvints

I have tried in laravel 9 and this problem still there will create another issue for laravel 9

khairy-pelcro avatar Aug 11 '22 12:08 khairy-pelcro