8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a107662 commit e723c6eCopy full SHA for e723c6e
src/Symfony/Component/Form/FormErrorIterator.php
@@ -80,7 +80,7 @@ public function __toString()
80
$string .= 'ERROR: '.$error->getMessage()."\n";
81
} else {
82
/* @var self $error */
83
- $string .= $error->form->getName().":\n";
+ $string .= $error->getForm()->getName().":\n";
84
$string .= self::indent((string) $error);
85
}
86
@@ -233,7 +233,10 @@ public function getChildren()
233
// throw new LogicException(sprintf('The current element is not iterable. Use "%s" to get the current element.', self::class.'::current()'));
234
235
236
- return current($this->errors);
+ /** @var self $children */
237
+ $children = current($this->errors);
238
+
239
+ return $children;
240
241
242
/**
0 commit comments