@@ -28,7 +28,7 @@ public function testAttributeWithDefaultProperty()
28
28
self ::assertTrue ($ loader ->loadClassMetadata ($ metadata ));
29
29
30
30
/** @var UniqueEntity $constraint */
31
- list ( $ constraint) = $ metadata ->getConstraints ();
31
+ [ $ constraint] = $ metadata ->getConstraints ();
32
32
self ::assertSame (['email ' ], $ constraint ->fields );
33
33
self ::assertTrue ($ constraint ->ignoreNull );
34
34
self ::assertSame ('doctrine.orm.validator.unique ' , $ constraint ->validatedBy ());
@@ -42,7 +42,7 @@ public function testAttributeWithCustomizedService()
42
42
self ::assertTrue ($ loader ->loadClassMetadata ($ metadata ));
43
43
44
44
/** @var UniqueEntity $constraint */
45
- list ( $ constraint) = $ metadata ->getConstraints ();
45
+ [ $ constraint] = $ metadata ->getConstraints ();
46
46
self ::assertSame (['isbn ' ], $ constraint ->fields );
47
47
self ::assertSame ('my_own_validator ' , $ constraint ->validatedBy ());
48
48
self ::assertSame ('my_own_entity_manager ' , $ constraint ->em );
@@ -57,7 +57,7 @@ public function testAttributeWithGroupsAndPaylod()
57
57
self ::assertTrue ($ loader ->loadClassMetadata ($ metadata ));
58
58
59
59
/** @var UniqueEntity $constraint */
60
- list ( $ constraint) = $ metadata ->getConstraints ();
60
+ [ $ constraint] = $ metadata ->getConstraints ();
61
61
self ::assertSame ('uuid ' , $ constraint ->fields );
62
62
self ::assertSame ('id ' , $ constraint ->errorPath );
63
63
self ::assertSame ('some attached data ' , $ constraint ->payload );
0 commit comments