File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Tests/Validator/Constraints Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414use PHPUnit \Framework \TestCase ;
1515use Symfony \Component \Security \Core \Validator \Constraints \UserPassword ;
1616use Symfony \Component \Validator \Mapping \ClassMetadata ;
17- use Symfony \Component \Validator \Mapping \Loader \AnnotationLoader ;
17+ use Symfony \Component \Validator \Mapping \Loader \AttributeLoader ;
1818
1919class UserPasswordTest extends TestCase
2020{
@@ -40,15 +40,15 @@ public static function provideServiceValidatedConstraints(): iterable
4040 yield 'named arguments ' => [new UserPassword (service: 'my_service ' )];
4141
4242 $ metadata = new ClassMetadata (UserPasswordDummy::class);
43- self ::assertTrue ((new AnnotationLoader ())->loadClassMetadata ($ metadata ));
43+ self ::assertTrue ((new AttributeLoader ())->loadClassMetadata ($ metadata ));
4444
4545 yield 'attribute ' => [$ metadata ->properties ['b ' ]->constraints [0 ]];
4646 }
4747
4848 public function testAttributes ()
4949 {
5050 $ metadata = new ClassMetadata (UserPasswordDummy::class);
51- self ::assertTrue ((new AnnotationLoader ())->loadClassMetadata ($ metadata ));
51+ self ::assertTrue ((new AttributeLoader ())->loadClassMetadata ($ metadata ));
5252
5353 [$ bConstraint ] = $ metadata ->properties ['b ' ]->getConstraints ();
5454 self ::assertSame ('myMessage ' , $ bConstraint ->message );
Original file line number Diff line number Diff line change 3232 "symfony/ldap" : " ^5.4|^6.0|^7.0" ,
3333 "symfony/string" : " ^5.4|^6.0|^7.0" ,
3434 "symfony/translation" : " ^5.4|^6.0|^7.0" ,
35- "symfony/validator" : " ^5.4|^6.0 |^7.0" ,
35+ "symfony/validator" : " ^6.4 |^7.0" ,
3636 "psr/log" : " ^1|^2|^3"
3737 },
3838 "conflict" : {
You can’t perform that action at this time.
0 commit comments