Skip to content

Commit 2537987

Browse files
Remove deprecated code paths
1 parent 04b0c62 commit 2537987

33 files changed

+0
-70
lines changed

Extension/Validator/Type/FormTypeValidatorExtension.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function __construct(ValidatorInterface $validator, bool $legacyErrorMess
3434
{
3535
$this->validator = $validator;
3636
$this->violationMapper = new ViolationMapper($formRenderer, $translator);
37-
$this->legacyErrorMessages = $legacyErrorMessages;
3837
}
3938

4039
/**
@@ -62,11 +61,9 @@ public function configureOptions(OptionsResolver $resolver)
6261
'constraints' => [],
6362
'invalid_message' => 'This value is not valid.',
6463
'invalid_message_parameters' => [],
65-
'legacy_error_messages' => $this->legacyErrorMessages,
6664
'allow_extra_fields' => false,
6765
'extra_fields_message' => 'This form should not contain extra fields.',
6866
]);
69-
$resolver->setAllowedTypes('legacy_error_messages', 'bool');
7067

7168
$resolver->setNormalizer('constraints', $constraintsNormalizer);
7269
}

Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1615
use Symfony\Component\Form\Exception\TransformationFailedException;
1716
use Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer;
1817
use Symfony\Component\Intl\Util\IntlTestHelper;
1918

2019
class PercentToLocalizedStringTransformerTest extends TestCase
2120
{
22-
use ExpectDeprecationTrait;
23-
2421
private $defaultLocale;
2522

2623
protected function setUp(): void

Tests/Extension/Core/Type/ChoiceTypeTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
1313

14-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1514
use Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader;
1615
use Symfony\Component\Form\ChoiceList\View\ChoiceGroupView;
1716
use Symfony\Component\Form\ChoiceList\View\ChoiceView;
@@ -20,8 +19,6 @@
2019

2120
class ChoiceTypeTest extends BaseTypeTest
2221
{
23-
use ExpectDeprecationTrait;
24-
2522
public const TESTED_TYPE = 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
2623

2724
private $choices = [

Tests/Extension/Core/Type/PercentTypeTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
1313

14-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1514
use Symfony\Component\Form\Extension\Core\Type\PercentType;
1615
use Symfony\Component\Form\Test\TypeTestCase;
1716
use Symfony\Component\Intl\Util\IntlTestHelper;
1817

1918
class PercentTypeTest extends TypeTestCase
2019
{
21-
use ExpectDeprecationTrait;
22-
2320
public const TESTED_TYPE = PercentType::class;
2421

2522
private $defaultLocale;

Tests/Extension/Validator/Type/BirthdayTypeValidatorExtensionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Validator\Type;
1313

14-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1514
use Symfony\Component\Form\Extension\Core\Type\BirthdayType;
1615
use Symfony\Component\Form\Test\Traits\ValidatorExtensionTrait;
1716

1817
class BirthdayTypeValidatorExtensionTest extends BaseValidatorExtensionTest
1918
{
20-
use ExpectDeprecationTrait;
2119
use ValidatorExtensionTrait;
2220

2321
protected function createForm(array $options = [])

Tests/Extension/Validator/Type/CheckboxTypeValidatorExtensionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Validator\Type;
1313

14-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1514
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
1615
use Symfony\Component\Form\Test\Traits\ValidatorExtensionTrait;
1716

1817
class CheckboxTypeValidatorExtensionTest extends BaseValidatorExtensionTest
1918
{
20-
use ExpectDeprecationTrait;
2119
use ValidatorExtensionTrait;
2220

2321
protected function createForm(array $options = [])

Tests/Extension/Validator/Type/ChoiceTypeValidatorExtensionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Validator\Type;
1313

14-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1514
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
1615
use Symfony\Component\Form\Test\Traits\ValidatorExtensionTrait;
1716

1817
class ChoiceTypeValidatorExtensionTest extends BaseValidatorExtensionTest
1918
{
20-
use ExpectDeprecationTrait;
2119
use ValidatorExtensionTrait;
2220

2321
protected function createForm(array $options = [])

Tests/Extension/Validator/Type/CollectionTypeValidatorExtensionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Validator\Type;
1313

14-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1514
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
1615
use Symfony\Component\Form\Test\Traits\ValidatorExtensionTrait;
1716

1817
class CollectionTypeValidatorExtensionTest extends BaseValidatorExtensionTest
1918
{
20-
use ExpectDeprecationTrait;
2119
use ValidatorExtensionTrait;
2220

2321
protected function createForm(array $options = [])

Tests/Extension/Validator/Type/ColorTypeValidatorExtensionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Validator\Type;
1313

14-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1514
use Symfony\Component\Form\Extension\Core\Type\ColorType;
1615
use Symfony\Component\Form\Test\Traits\ValidatorExtensionTrait;
1716

1817
class ColorTypeValidatorExtensionTest extends BaseValidatorExtensionTest
1918
{
20-
use ExpectDeprecationTrait;
2119
use ValidatorExtensionTrait;
2220

2321
protected function createForm(array $options = [])

Tests/Extension/Validator/Type/CountryTypeValidatorExtensionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111

1212
namespace Symfony\Component\Form\Tests\Extension\Validator\Type;
1313

14-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1514
use Symfony\Component\Form\Extension\Core\Type\CountryType;
1615
use Symfony\Component\Form\Test\Traits\ValidatorExtensionTrait;
1716

1817
class CountryTypeValidatorExtensionTest extends BaseValidatorExtensionTest
1918
{
20-
use ExpectDeprecationTrait;
2119
use ValidatorExtensionTrait;
2220

2321
protected function createForm(array $options = [])

0 commit comments

Comments
 (0)