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 e723c6e

Browse filesBrowse files
Fix psalm issues
1 parent a107662 commit e723c6e
Copy full SHA for e723c6e

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+5
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormErrorIterator.php
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __toString()
8080
$string .= 'ERROR: '.$error->getMessage()."\n";
8181
} else {
8282
/* @var self $error */
83-
$string .= $error->form->getName().":\n";
83+
$string .= $error->getForm()->getName().":\n";
8484
$string .= self::indent((string) $error);
8585
}
8686
}
@@ -233,7 +233,10 @@ public function getChildren()
233233
// throw new LogicException(sprintf('The current element is not iterable. Use "%s" to get the current element.', self::class.'::current()'));
234234
}
235235

236-
return current($this->errors);
236+
/** @var self $children */
237+
$children = current($this->errors);
238+
239+
return $children;
237240
}
238241

239242
/**

0 commit comments

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