File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Tests/Validator/Constraints Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,15 @@ public function testAttributes()
2727 $ loader = new AttributeLoader ();
2828 self ::assertTrue ($ loader ->loadClassMetadata ($ metadata ));
2929
30- [$ bConstraint ] = $ metadata ->properties [ 'b ' ]->getConstraints ();
30+ [$ bConstraint ] = $ metadata ->getPropertyMetadata ( 'b ' )[ 0 ]->getConstraints ();
3131 self ::assertSame ('myMessage ' , $ bConstraint ->message );
3232 self ::assertSame (['Default ' , 'TwigDummy ' ], $ bConstraint ->groups );
3333
34- [$ cConstraint ] = $ metadata ->properties [ 'c ' ]->getConstraints ();
34+ [$ cConstraint ] = $ metadata ->getPropertyMetadata ( 'c ' )[ 0 ]->getConstraints ();
3535 self ::assertSame (['my_group ' ], $ cConstraint ->groups );
3636 self ::assertSame ('some attached data ' , $ cConstraint ->payload );
3737
38- [$ dConstraint ] = $ metadata ->properties [ 'd ' ]->getConstraints ();
38+ [$ dConstraint ] = $ metadata ->getPropertyMetadata ( 'd ' )[ 0 ]->getConstraints ();
3939 self ::assertFalse ($ dConstraint ->skipDeprecations );
4040 }
4141}
You can’t perform that action at this time.
0 commit comments