8000 [Form] removed deprecated features · symfony/symfony@e33de53 · GitHub
[go: up one dir, main page]

Skip to content

Commit e33de53

Browse files
committed
[Form] removed deprecated features
1 parent f87f8cd commit e33de53

24 files changed

+1
-1108
lines changed

src/Symfony/Component/Form/ButtonBuilder.php

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -378,23 +378,6 @@ public function setByReference($byReference)
378378
throw new BadMethodCallException('Buttons do not support data mapping.');
379379
}
380380

381-
/**
382-
* Unsupported method.
383-
*
384-
* This method should not be invoked.
385-
*
386-
* @param bool $virtual
387-
*
388-
* @throws BadMethodCallException
389-
*
390-
* @deprecated since version 2.3, to be removed in 3.0. Use
391-
* {@link setInheritData()} instead.
392-
*/
393-
public function setVirtual($virtual)
394-
{
395-
throw new BadMethodCallException('Buttons cannot be virtual.');
396-
}
397-
398381
/**
399382
* Unsupported method.
400383
*
@@ -587,21 +570,6 @@ public function getByReference()
587570
return false;
588571
}
589572

590-
/**
591-
* Unsupported method.
592-
*
593-
* @return bool Always returns false.
594-
*
595-
* @deprecated since version 2.3, to be removed in 3.0.
596-
* Use {@link getInheritData()} instead.
597-
*/
598-
public function getVirtual()
599-
{
600-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the Symfony\Component\Form\FormConfigBuilder::getInheritData method instead.', E_USER_DEPRECATED);
601-
602-
return false;
603-
}
604-
605573
/**
606574
* Unsupported method.
607575
*

src/Symfony/Component/Form/Exception/AlreadyBoundException.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/Symfony/Component/Form/Exception/AlreadySubmittedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
*
1818
* @author Bernhard Schussek <bschussek@gmail.com>
1919
*/
20-
class AlreadySubmittedException extends AlreadyBoundException
20+
class AlreadySubmittedException extends LogicException
2121
{
2222
}

src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToBooleanArrayTransformer.php

Lines changed: 0 additions & 121 deletions
This file was deleted.

src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoicesToBooleanArrayTransformer.php

Lines changed: 0 additions & 122 deletions
This file was deleted.

src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,27 +72,6 @@ class NumberToLocalizedStringTransformer implements DataTransformerInterface
7272
*/
7373
const ROUND_HALF_DOWN = \NumberFormatter::ROUND_HALFDOWN;
7474

75-
/**
76-
* Alias for {@link self::ROUND_HALF_EVEN}.
77-
*
78-
* @deprecated since version 2.4, to be removed in 3.0.
79-
*/
80-
const ROUND_HALFEVEN = \NumberFormatter::ROUND_HALFEVEN;
81-
82-
/**
83-
* Alias for {@link self::ROUND_HALF_UP}.
84-
*
85-
* @deprecated since version 2.4, to be removed in 3.0.
86-
*/
87-
const ROUND_HALFUP = \NumberFormatter::ROUND_HALFUP;
88-
89-
/**
90-
* Alias for {@link self::ROUND_HALF_DOWN}.
91-
*
92-
* @deprecated since version 2.4, to be removed in 3.0.
93-
*/
94-
const ROUND_HALFDOWN = \NumberFormatter::ROUND_HALFDOWN;
95-
9675
/**
9776
* @deprecated since version 2.7, will be replaced by a $scale private property in 3.0.
9877
*/

0 commit comments

Comments
 (0)
0