Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 286bab1

Browse files
committed
Update for 7.1
1 parent 03baa15 commit 286bab1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/Symfony/Component/Form/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
7.1
5+
---
6+
7+
* Deprecate not configuring the `default_protocol` option of the `UrlType`, it will default to `null` in 8.0
8+
49
7.0
510
---
611

@@ -18,7 +23,6 @@ CHANGELOG
1823
* Deprecate `PostSubmitEvent::setData()`, use `PreSubmitDataEvent::setData()` or `SubmitDataEvent::setData()` instead
1924
* Add `duplicate_preferred_choices` option in `ChoiceType`
2025
* Add `$duplicatePreferredChoices` parameter to `ChoiceListFactoryInterface::createView()`
21-
* Deprecate not configuring the `default_protocol` option of the `UrlType`, it will default to `null` in 7.0
2226

2327
6.3
2428
---

src/Symfony/Component/Form/Extension/Core/Type/UrlType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function configureOptions(OptionsResolver $resolver): void
4040
{
4141
$resolver->setDefaults([
4242
'default_protocol' => static function (Options $options) {
43-
trigger_deprecation('symfony/form', '6.4', 'Not configuring the "default_protocol" option is deprecated. It will default to "null" in 7.0.');
43+
trigger_deprecation('symfony/form', '7.1', 'Not configuring the "default_protocol" option when using the UrlType is deprecated. It will default to "null" in 8.0.');
4444

4545
return 'http';
4646
},

src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class UrlTypeTest extends TextTypeTest
2525
*/
2626
public function testSubmitAddsDefaultProtocolIfNoneIsIncluded()
2727
{
28-
$this->expectDeprecation('Since symfony/form 6.4: Not configuring the "default_protocol" option is deprecated. It will default to "null" in 7.0.');
28+
$this->expectDeprecation('Since symfony/form 7.1: Not configuring the "default_protocol" option when using the UrlType is deprecated. It will default to "null" in 8.0.');
2929
$form = $this->factory->create(static::TESTED_TYPE, 'name');
3030

3131
$form->submit('www.domain.com');

0 commit comments

Comments
 (0)