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 3ac3ab1

Browse filesBrowse files
committed
Apply fabbot changes
1 parent 8c943be commit 3ac3ab1
Copy full SHA for 3ac3ab1

File tree

Expand file treeCollapse file tree

2 files changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-4
lines changed

‎src/Symfony/Component/Form/FormErrorIterator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormErrorIterator.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public function findByCodes($codes)
275275
}
276276

277277
$cause = (string) $cause;
278-
if (\in_array($cause, $codes, true)){
278+
if (\in_array($cause, $codes, true)) {
279279
$errors[] = $error;
280280
}
281281
}

‎src/Symfony/Component/Form/Tests/FormErrorIteratorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/FormErrorIteratorTest.php
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ public function testFindByCodesWhenAllCausesAreVariousObjectsOrSimpleStrings($co
7373

7474
$cause = new ConstraintViolation('Error 1!', null, array(), null, '', null, null, 'code1');
7575
$form->addError(new FormError('Error 1!', null, array(), null, $cause));
76-
$cause = new class
77-
{
76+
$cause = new class() {
7877
public function __toString()
7978
{
8079
return 'code1';
@@ -98,5 +97,4 @@ public function findByCodesProvider()
9897
array('code3', 0),
9998
);
10099
}
101-
102100
}

0 commit comments

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