Skip to content

Commit 8aa704a

Browse files
OskarStarknicolas-grekas
authored andcommitted
[Form] Make ResizeFormListener::postSetData() method final
1 parent a985ec4 commit 8aa704a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

UPGRADE-8.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ Form
158158
]);
159159
```
160160

161+
* Made `ResizeFormListener::postSetData()` method `final`
162+
161163
FrameworkBundle
162164
---------------
163165

src/Symfony/Component/Form/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ CHANGELOG
2525
* Add `LazyChoiceLoader` and `choice_lazy` option in `ChoiceType` for loading and rendering choices on demand
2626
* Use `form.post_set_data` instead of `form.pre_set_data` in `ResizeFormListener`
2727
* Change the priority of `DataCollectorListener` from 255 to -255
28+
* Make `ResizeFormListener::postSetData()` method `final`
2829

2930
7.1
3031
---

src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ public function preSetData(FormEvent $event): void
8080

8181
/**
8282
* Remove FormEvent type hint in 8.0.
83-
*
84-
* @final since Symfony 7.2
8583
*/
86-
public function postSetData(FormEvent|PostSetDataEvent $event): void
84+
final public function postSetData(FormEvent|PostSetDataEvent $event): void
8785
{
8886
if (__CLASS__ !== static::class) {
8987
if ($this->overridden) {

0 commit comments

Comments
 (0)