From 0d2b11a160e2a494ff238dc9184990776b4c162b Mon Sep 17 00:00:00 2001 From: JefvdA Date: Thu, 9 Jan 2025 16:56:06 +0100 Subject: [PATCH] feat: added stub for DataMapperInterface Ensure TData of FormInterface is provided Set TData on mixed since we don't know the type of the child forms Add template for in DataMapperInterface creds to @roerbakei ;) refs: #417 --- .../Component/Form/DataMapperInterface.stub | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 stubs/Symfony/Component/Form/DataMapperInterface.stub diff --git a/stubs/Symfony/Component/Form/DataMapperInterface.stub b/stubs/Symfony/Component/Form/DataMapperInterface.stub new file mode 100644 index 00000000..c5ded026 --- /dev/null +++ b/stubs/Symfony/Component/Form/DataMapperInterface.stub @@ -0,0 +1,22 @@ +> $forms + */ + public function mapDataToForms(mixed $viewData, \Traversable $forms): void; + + /** + * @param \Traversable> $forms + * @param TViewData|null $viewData + * @param-out TViewData $viewData + */ + public function mapFormsToData(\Traversable $forms, mixed &$viewData): void; +}