8000 Remove useless condition · symfony/symfony@064ee4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 064ee4c

Browse files
authored
Remove useless condition
1 parent 8912003 commit 064ee4c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/Form/Form.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -818,10 +818,6 @@ public function add(FormInterface|string $child, string $type = null, array $opt
818818

819819
$child = (string) $child;
820820

821-
if (null !== $type && !\is_string($type)) {
822-
throw new UnexpectedTypeException($type, 'string or null');
823-
}
824-
825821
// Never initialize child forms automatically
826822
$options['auto_initialize'] = false;
827823

0 commit comments

Comments
 (0)
0