@@ -28,7 +28,7 @@ public function testAttributeWithDefaultProperty()
2828 self ::assertTrue ($ loader ->loadClassMetadata ($ metadata ));
2929
3030 /** @var UniqueEntity $constraint */
31- list ( $ constraint) = $ metadata ->getConstraints ();
31+ [ $ constraint] = $ metadata ->getConstraints ();
3232 self ::assertSame (['email ' ], $ constraint ->fields );
3333 self ::assertTrue ($ constraint ->ignoreNull );
3434 self ::assertSame ('doctrine.orm.validator.unique ' , $ constraint ->validatedBy ());
@@ -42,7 +42,7 @@ public function testAttributeWithCustomizedService()
4242 self ::assertTrue ($ loader ->loadClassMetadata ($ metadata ));
4343
4444 /** @var UniqueEntity $constraint */
45- list ( $ constraint) = $ metadata ->getConstraints ();
45+ [ $ constraint] = $ metadata ->getConstraints ();
4646 self ::assertSame (['isbn ' ], $ constraint ->fields );
4747 self ::assertSame ('my_own_validator ' , $ constraint ->validatedBy ());
4848 self ::assertSame ('my_own_entity_manager ' , $ constraint ->em );
@@ -57,7 +57,7 @@ public function testAttributeWithGroupsAndPaylod()
5757 self ::assertTrue ($ loader ->loadClassMetadata ($ metadata ));
5858
5959 /** @var UniqueEntity $constraint */
60- list ( $ constraint) = $ metadata ->getConstraints ();
60+ [ $ constraint] = $ metadata ->getConstraints ();
6161 self ::assertSame ('uuid ' , $ constraint ->fields );
6262 self ::assertSame ('id ' , $ constraint ->errorPath );
6363 self ::assertSame ('some attached data ' , $ constraint ->payload );
0 commit comments