Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit450404d

Browse files
author
dieter.beck
committed
Throw exception if child element is not iterable
1 parentcce4ed3 commit450404d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ public function hasChildren(): bool
190190
publicfunctiongetChildren():self
191191
{
192192
if (!$this->hasChildren()) {
193-
trigger_deprecation('symfony/form','5.4','Calling "%s()" if the current element is not iterable is deprecated, call "%s" to get the current element.',__METHOD__,self::class.'::current()');
194-
// throw new LogicException(sprintf('The current element is not iterable. Use "%s" to get the current element.', self::class.'::current()'));
193+
thrownewLogicException(sprintf('The current element is not iterable. Use "%s" to get the current element.',self::class.'::current()'));
195194
}
196195

197196
returncurrent($this->errors);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp