Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b157e80

Browse filesBrowse files
authored
Fix code style of ValidTest
1 parent 1b36cb2 commit b157e80
Copy full SHA for b157e80

File tree

1 file changed

+6
-6
lines changed
Filter options

1 file changed

+6
-6
lines changed

‎src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testGroupsAreNullByDefault()
3434

3535
$this->assertNull($constraint->groups);
3636
}
37-
37+
3838
/**
3939
* @requires PHP 8
4040
*/
@@ -43,12 +43,12 @@ public function testAttributes()
4343
$metadata = new ClassMetaData(ValidDummy::class);
4444
$loader = new AnnotationLoader();
4545
self::assertTrue($loader->loadClassMetadata($metadata));
46-
47-
list($bConstraint) = $metadata->properties['b']->getConstraints();
46+
47+
[$bConstraint] = $metadata->properties['b']->getConstraints();
4848
self::assertSame(true, $bConstraint->traverse);
4949
self::assertSame(['Default', 'ValidDummy'], $bConstraint->groups);
5050

51-
list($cConstraint) = $metadata->properties['c']->getConstraints();
51+
[$cConstraint] = $metadata->properties['c']->getConstraints();
5252
self::assertSame(['my_group'], $cConstraint->groups);
5353
self::assertSame('some attached data', $cConstraint->payload);
5454
}
@@ -58,10 +58,10 @@ class ValidDummy
5858
{
5959
#[Valid]
6060
private $a;
61-
61+
6262
#[Valid(traverse: true)]
6363
private $b;
64-
64+
6565
#[Valid(groups: ['my_group'], payload: 'some attached data')]
6666
private $c;
6767
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.