Skip to content

Commit c8ec604

Browse files
authored
Remove useless condition
1 parent 9683dea commit c8ec604

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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)