File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/Validator/Constraints Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ public function testAttributes()
57
57
$ metadata = new ClassMetadata (UserPasswordDummy::class);
58
58
self ::assertTrue ((new AnnotationLoader ())->loadClassMetadata ($ metadata ));
59
59
60
- list ( $ bConstraint) = $ metadata ->properties ['b ' ]->getConstraints ();
60
+ [ $ bConstraint] = $ metadata ->properties ['b ' ]->getConstraints ();
61
61
self ::assertSame ('myMessage ' , $ bConstraint ->message );
62
62
self ::assertSame (['Default ' , 'UserPasswordDummy ' ], $ bConstraint ->groups );
63
63
self ::assertNull ($ bConstraint ->payload );
64
64
65
- list ( $ cConstraint) = $ metadata ->properties ['c ' ]->getConstraints ();
65
+ [ $ cConstraint] = $ metadata ->properties ['c ' ]->getConstraints ();
66
66
self ::assertSame (['my_group ' ], $ cConstraint ->groups );
67
67
self ::assertSame ('some attached data ' , $ cConstraint ->payload );
68
68
}
You can’t perform that action at this time.
0 commit comments