From 9f97df0bbbd732e7ed5ec1e5b5840f983ec486ca Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Thu, 25 Nov 2021 10:21:32 +0100 Subject: [PATCH] Allow `int` in `Form::add` --- src/Symfony/Component/Form/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index bed1fcb6c376c..e72a51d7c19ed 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -803,7 +803,7 @@ public function all(): array /** * {@inheritdoc} */ - public function add(FormInterface|string $child, string $type = null, array $options = []): static + public function add(FormInterface|string|int $child, string $type = null, array $options = []): static { if ($this->submitted) { throw new AlreadySubmittedException('You cannot add children to a submitted form.');