8000 Fix psalm issues · symfony/symfony@e723c6e · GitHub
[go: up one dir, main page]

Skip to content

Commit e723c6e

Browse files
Fix psalm issues
1 parent a107662 commit e723c6e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Symfony/Component/Form/FormErrorIterator.php

Lines 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