8000 Merge branch '3.4' into 4.3 · symfony/symfony@cca22c4 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit cca22c4

Browse files
Merge branch '3.4' into 4.3
* 3.4: [Form] fix return type on FormDataCollector
2 parents ef2db21 + fcdc61a commit cca22c4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Symfony/Component/Form/Extension/DataCollector/FormDataCollectorInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\Form\FormInterface;
1515
use Symfony\Component\Form\FormView;
1616
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
17+
use Symfony\Component\VarDumper\Cloner\Data;
1718

1819
/**
1920
* Collects and structures information about forms.
@@ -78,7 +79,7 @@ public function buildFinalFormTree(FormInterface $form, FormView $view);
7879
/**
7980
* Returns all collected data.
8081
*
81-
* @return array
82+
* @return array|Data
8283
*/
8384
public function getData();
8485
}

src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
*/
2929
abstract class DataCollector implements DataCollectorInterface
3030
{
31+
/**
32+
* @var array|Data
33+
*/
3134
protected $data = [];
3235

3336
/**

0 commit comments

Comments
 (0)
0