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()
5757 $ metadata = new ClassMetadata (UserPasswordDummy::class);
5858 self ::assertTrue ((new AnnotationLoader ())->loadClassMetadata ($ metadata ));
5959
60- list ( $ bConstraint) = $ metadata ->properties ['b ' ]->getConstraints ();
60+ [ $ bConstraint] = $ metadata ->properties ['b ' ]->getConstraints ();
6161 self ::assertSame ('myMessage ' , $ bConstraint ->message );
6262 self ::assertSame (['Default ' , 'UserPasswordDummy ' ], $ bConstraint ->groups );
6363 self ::assertNull ($ bConstraint ->payload );
6464
65- list ( $ cConstraint) = $ metadata ->properties ['c ' ]->getConstraints ();
65+ [ $ cConstraint] = $ metadata ->properties ['c ' ]->getConstraints ();
6666 self ::assertSame (['my_group ' ], $ cConstraint ->groups );
6767 self ::assertSame ('some attached data ' , $ cConstraint ->payload );
6868 }
You can’t perform that action at this time.
0 commit comments