Skip to content

Commit

Permalink
minor #51044 [Form] Fix form events phpdocs (HeahDude)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.4 branch.

Discussion
----------

[Form] Fix form events phpdocs

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ~
| License       | MIT
| Doc PR        | ~

Sibling of symfony/symfony-docs#18587.

Commits
-------

2032b5b [Form] Fix form events phpdocs
  • Loading branch information
nicolas-grekas committed Jul 21, 2023
2 parents 06ec40a + 2032b5b commit 0bc39e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Symfony/Component/Form/Event/PostSetDataEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
/**
* This event is dispatched at the end of the Form::setData() method.
*
* This event is mostly here for reading data after having pre-populated the form.
* It can be used to modify a form depending on the populated data (adding or
* removing fields dynamically).
*/
final class PostSetDataEvent extends FormEvent
{
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Component/Form/Event/PreSetDataEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
/**
* This event is dispatched at the beginning of the Form::setData() method.
*
* It can be used to:
* - Modify the data given during pre-population;
* - Modify a form depending on the pre-populated data (adding or removing fields dynamically).
* It can be used to modify the data given during pre-population.
*/
final class PreSetDataEvent extends FormEvent
{
Expand Down

0 comments on commit 0bc39e8

Please sign in to comment.