Skip to content

Commit cbaa9c4

Browse files
committed
minor symfony#16523 Reorder upgrade doc (umpirsky)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes symfony#16523). Discussion ---------- Reorder upgrade doc Just group "The option "`a`" was renamed to "`b`"." together. | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Commits ------- 2c65507 Reorder upgrade steps
2 parents 775129f + 2c65507 commit cbaa9c4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

UPGRADE-3.0.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,24 @@ UPGRADE FROM 2.x to 3.0
124124
));
125125
```
126126

127+
* The option "`virtual`" was renamed to "`inherit_data`".
128+
129+
Before:
130+
131+
```php
132+
$builder->add('address', 'form', array(
133+
'virtual' => true,
134+
));
135+
```
136+
137+
After:
138+
139+
```php
140+
$builder->add('address', 'form', array(
141+
'inherit_data' => true,
142+
));
143+
```
144+
127145
* The method `AbstractType::setDefaultOptions(OptionsResolverInterface $resolver)` and
128146
`AbstractTypeExtension::setDefaultOptions(OptionsResolverInterface $resolver)` have been
129147
renamed. You should use `AbstractType::configureOptions(OptionsResolver $resolver)` and
@@ -205,24 +223,6 @@ UPGRADE FROM 2.x to 3.0
205223
});
206224
```
207225

208-
* The option "`virtual`" was renamed to "`inherit_data`".
209-
210-
Before:
211-
212-
```php
213-
$builder->add('address', 'form', array(
214-
'virtual' => true,
215-
));
216-
```
217-
218-
After:
219-
220-
```php
221-
$builder->add('address', 'form', array(
222-
'inherit_data' => true,
223-
));
224-
```
225-
226226
* The class `VirtualFormAwareIterator` was renamed to `InheritDataAwareIterator`.
227227

228228
Before:

0 commit comments

Comments
 (0)