8000 minor #33120 [Form] fix return type on FormDataCollector (maxhelias) · symfony/symfony@fcdc61a · GitHub
[go: up one dir, main page]

Skip to content

Commit fcdc61a

Browse files
minor #33120 [Form] fix return type on FormDataCollector (maxhelias)
This PR was merged into the 3.4 branch. Discussion ---------- [Form] fix return type on FormDataCollector | Q | A | ------------- | --- | Branch? | master <!-- see below --> | Bug fix? | yes | New feature? |no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? |no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | - <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | - <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against branch 4.4. - Legacy code removals go to the master branch. --> Commits ------- de6b9ef [Form] fix return type on FormDataCollector
2 parents 7fb7f59 + de6b9ef commit fcdc61a

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, \Serializable
3030
{
31+
/**
32+
* @var array|Data
33+
*/
3134
protected $data = [];
3235

3336
/**

0 commit comments

Comments
 (0)
0