Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Symfony/Component/Form/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHANGELOG
* Remove `PropertyPathMaper`
* Remove `Symfony\Component\Form\Extension\Validator\Util\ServiceParams`
* Remove `FormPass` configuration
* Remove the `NumberToLocalizedStringTransformer::ROUND_*` constants, use `\NumberFormatter::ROUND_*` instead
* Add `FormConfigInterface::getIsEmptyCallback()` and `FormConfigBuilderInterface::setIsEmptyCallback()`
* Change `$forms` parameter type of the `DataMapper::mapDataToForms()` method from `iterable` to `\Traversable`
* Change `$forms` parameter type of the `DataMapper::mapFormsToData()` method from `iterable` to `\Traversable`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,6 @@
*/
class NumberToLocalizedStringTransformer implements DataTransformerInterface
{
/**
* @deprecated since Symfony 5.1, use \NumberFormatter::ROUND_CEILING instead.
*/
public const ROUND_CEILING = \NumberFormatter::ROUND_CEILING;

/**
* @deprecated since Symfony 5.1, use \NumberFormatter::ROUND_FLOOR instead.
*/
public const ROUND_FLOOR = \NumberFormatter::ROUND_FLOOR;

/**
* @deprecated since Symfony 5.1, use \NumberFormatter::ROUND_UP instead.
*/
public const ROUND_UP = \NumberFormatter::ROUND_UP;

/**
* @deprecated since Symfony 5.1, use \NumberFormatter::ROUND_DOWN instead.
*/
public const ROUND_DOWN = \NumberFormatter::ROUND_DOWN;

/**
* @deprecated since Symfony 5.1, use \NumberFormatter::ROUND_HALFEVEN instead.
*/
public const ROUND_HALF_EVEN = \NumberFormatter::ROUND_HALFEVEN;

/**
* @deprecated since Symfony 5.1, use \NumberFormatter::ROUND_HALFUP instead.
*/
public const ROUND_HALF_UP = \NumberFormatter::ROUND_HALFUP;

/**
* @deprecated since Symfony 5.1, use \NumberFormatter::ROUND_HALFDOWN instead.
*/
public const ROUND_HALF_DOWN = \NumberFormatter::ROUND_HALFDOWN;

protected $grouping;

protected $roundingMode;
Expand Down