Skip to content

Commit f7783d2

Browse files
wouterjnicolas-grekas
authored andcommitted
Add missing return types and enforce return types on all methods
1 parent d65726b commit f7783d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/DataCollector/FormDataCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ protected function getCasters(): array
242242
];
243243
}
244244

245-
private function &recursiveBuildPreliminaryFormTree(FormInterface $form, array &$outputByHash)
245+
private function &recursiveBuildPreliminaryFormTree(FormInterface $form, array &$outputByHash): array
246246
{
247247
$hash = spl_object_hash($form);
248248

@@ -259,7 +259,7 @@ private function &recursiveBuildPreliminaryFormTree(FormInterface $form, array &
259259
return $output;
260260
}
261261

262-
private function &recursiveBuildFinalFormTree(FormInterface $form = null, FormView $view, array &$outputByHash)
262+
private function &recursiveBuildFinalFormTree(FormInterface $form = null, FormView $view, array &$outputByHash): array
263263
{
264264
$viewHash = spl_object_hash($view);
265265
$formHash = null;

0 commit comments

Comments
 (0)