@@ -2358,15 +2358,15 @@ public function testValidateEmail()
23582358 $ v = new Validator ($ trans , ['x ' => ['not a string ' ]], ['x ' => 'Email ' ]);
23592359 $ this ->assertFalse ($ v ->passes ());
23602360
2361- $ v = new Validator ($ trans , ['x ' => new class () {
2361+ $ v = new Validator ($ trans , ['x ' => new class {
23622362 public function __toString ()
23632363 {
23642364 return 'aslsdlks ' ;
23652365 }
23662366 }], ['x ' => 'Email ' ]);
23672367 $ this ->assertFalse ($ v ->passes ());
23682368
2369- $ v = new Validator ($ trans , ['x ' => new class () {
2369+ $ v = new Validator ($ trans , ['x ' => new class {
23702370 public function __toString ()
23712371 {
23722372@@ -4496,7 +4496,7 @@ public function testCustomValidationObject()
44964496 $ v = new Validator (
44974497 $ this ->getIlluminateArrayTranslator (),
44984498 ['name ' => 'taylor ' ],
4499- ['name ' => new class () implements Rule {
4499+ ['name ' => new class implements Rule {
45004500 public function passes (string $ attribute , mixed $ value ): bool
45014501 {
45024502 return $ value === 'taylor ' ;
@@ -4515,7 +4515,7 @@ public function message(): array|string
45154515 $ v = new Validator (
45164516 $ this ->getIlluminateArrayTranslator (),
45174517 ['name ' => 'adam ' ],
4518- ['name ' => [new class () implements Rule {
4518+ ['name ' => [new class implements Rule {
45194519 public function passes (string $ attribute , mixed $ value ): bool
45204520 {
45214521 return $ value === 'taylor ' ;
@@ -4563,7 +4563,7 @@ public function message(): array|string
45634563 $ this ->getIlluminateArrayTranslator (),
45644564 ['name ' => 'taylor ' , 'states ' => ['AR ' , 'TX ' ], 'number ' => 9 ],
45654565 [
4566- 'states.* ' => new class () implements Rule {
4566+ 'states.* ' => new class implements Rule {
45674567 public function passes (string $ attribute , mixed $ value ): bool
45684568 {
45694569 return in_array ($ value , ['AK ' , 'HI ' ]);
@@ -4600,7 +4600,7 @@ function ($attribute, $value, $fail) {
46004600 $ v = new Validator (
46014601 $ this ->getIlluminateArrayTranslator (),
46024602 ['name ' => 42 ],
4603- ['name ' => new class () implements Rule {
4603+ ['name ' => new class implements Rule {
46044604 public function passes (string $ attribute , mixed $ value ): bool
46054605 {
46064606 return $ value === 'taylor ' ;
@@ -4621,7 +4621,7 @@ public function message(): array|string
46214621 $ v = new Validator (
46224622 $ this ->getIlluminateArrayTranslator (),
46234623 ['name ' => 42 ],
4624- ['name ' => [new class () implements Rule {
4624+ ['name ' => [new class implements Rule {
46254625 public function passes (string $ attribute , mixed $ value ): bool
46264626 {
46274627 return $ value === 'taylor ' ;
@@ -4646,7 +4646,7 @@ public function testImplicitCustomValidationObjects()
46464646 $ v = new Validator (
46474647 $ this ->getIlluminateArrayTranslator (),
46484648 ['name ' => '' ],
4649- ['name ' => $ rule = new class () implements ImplicitRule {
4649+ ['name ' => $ rule = new class implements ImplicitRule {
46504650 public $ called = false ;
46514651
46524652 public function passes (string $ attribute , mixed $ value ): bool
0 commit comments