Skip to content

Commit 474adb0

Browse files
committed
Fix CS
1 parent 60eeb64 commit 474adb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Validator/Constraints/UserPasswordTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)