8000 Undo string cast in FormBuilder · symfony/symfony@8d3ffef · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d3ffef

Browse files
committed
Undo string cast in FormBuilder
1 parent db81ac3 commit 8d3ffef

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Symfony/Component/Form/FormBuilder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ public function add($child, $type = null, array $options = [])
7373
throw new UnexpectedTypeException($child, 'string or Symfony\Component\Form\FormBuilderInterface');
7474
}
7575

76-
$child = (string) $child;
77-
7876
if (null !== $type && !\is_string($type) && !$type instanceof FormTypeInterface) {
7977
throw new UnexpectedTypeException($type, 'string or Symfony\Component\Form\FormTypeInterface');
8078
}

0 commit comments

Comments
 (0)
0