@@ -2499,7 +2499,7 @@ public function count(): int
2499
2499
$ v = new Validator ($ trans , ['foo ' => 'foo ' , 'bar ' => '2 ' ], ['foo ' => 'missing_if:bar,1 ' ]);
2500
2500
$ this ->assertTrue ($ v ->passes ());
2501
2501
2502
- $ v = new Validator ($ trans ,['foo ' => [0 => ['bar ' => 1 , 'baz ' => 'should be missing ' ]]], ['foo.*.baz ' => 'missing_if:foo.*.bar,1 ' ]);
2502
+ $ v = new Validator ($ trans , ['foo ' => [0 => ['bar ' => 1 , 'baz ' => 'should be missing ' ]]], ['foo.*.baz ' => 'missing_if:foo.*.bar,1 ' ]);
2503
2503
$ this ->assertTrue ($ v ->fails ());
2504
2504
$ this ->assertSame ('The foo.0.baz field must be missing when foo.0.bar is 1. ' , $ v ->errors ()->first ('foo.0.baz ' ));
2505
2505
}
@@ -2542,7 +2542,7 @@ public function count(): int
2542
2542
$ v = new Validator ($ trans , ['foo ' => 'foo ' , 'bar ' => '1 ' ], ['foo ' => 'missing_unless:bar,1 ' ]);
2543
2543
$ this ->assertTrue ($ v ->passes ());
2544
2544
2545
- $ v = new Validator ($ trans ,['foo ' => [0 => ['bar ' => 0 , 'baz ' => 'should be missing ' ]]], ['foo.*.baz ' => 'missing_unless:foo.*.bar,1 ' ]);
2545
+ $ v = new Validator ($ trans , ['foo ' => [0 => ['bar ' => 0 , 'baz ' => 'should be missing ' ]]], ['foo.*.baz ' => 'missing_unless:foo.*.bar,1 ' ]);
2546
2546
$ this ->assertTrue ($ v ->fails ());
2547
2547
$ this ->assertSame ('The foo.0.baz field must be missing unless foo.0.bar is 1. ' , $ v ->errors ()->first ('foo.0.baz ' ));
2548
2548
}
@@ -2588,7 +2588,7 @@ public function count(): int
2588
2588
$ v = new Validator ($ trans , ['foo ' => 'foo ' , 'qux ' => '1 ' ], ['foo ' => 'missing_with:baz,bar ' ]);
2589
2589
$ this ->assertTrue ($ v ->passes ());
2590
2590
2591
- $ v = new Validator ($ trans ,['foo ' => [0 => ['bar ' => 1 , 'baz ' => 'should be missing ' ]]], ['foo.*.baz ' => 'missing_with:foo.*.bar,foo.*.fred ' ]);
2591
+ $ v = new Validator ($ trans , ['foo ' => [0 => ['bar ' => 1 , 'baz ' => 'should be missing ' ]]], ['foo.*.baz ' => 'missing_with:foo.*.bar,foo.*.fred ' ]);
2592
2592
$ this ->assertTrue ($ v ->fails ());
2593
2593
$ this ->assertSame ('The foo.0.baz field must be missing when foo.0.bar / foo.0.fred is present. ' , $ v ->errors ()->first ('foo.0.baz ' ));
2594
2594
}
@@ -2634,7 +2634,7 @@ public function count(): int
2634
2634
$ v = new Validator ($ trans , ['foo ' => [], 'bar ' => '2 ' , 'qux ' => '2 ' ], ['foo ' => 'missing_with_all:baz,bar ' ]);
2635
2635
$ this ->assertTrue ($ v ->passes ());
2636
2636
2637
- $ v = new Validator ($ trans ,['foo ' => [0 => ['bar ' => 1 ,'fred ' => 2 , 'baz ' => 'should be missing ' ]]], ['foo.*.baz ' => 'missing_with_all:foo.*.bar,foo.*.fred ' ]);
2637
+ $ v = new Validator ($ trans , ['foo ' => [0 => ['bar ' => 1 , 'fred ' => 2 , 'baz ' => 'should be missing ' ]]], ['foo.*.baz ' => 'missing_with_all:foo.*.bar,foo.*.fred ' ]);
2638
2638
$ this ->assertTrue ($ v ->fails ());
2639
2639
$ this ->assertSame ('The foo.0.baz field must be missing when foo.0.bar / foo.0.fred are present. ' , $ v ->errors ()->first ('foo.0.baz ' ));
2640
2640
}
0 commit comments