remove the deprecated scale option of the IntegerType

This commit is contained in:
Christian Flothmann 2019-07-26 15:15:24 +02:00
parent 1cc7067cc1
commit 47881a6c35
3 changed files with 2 additions and 5 deletions

View File

@ -4,6 +4,7 @@ CHANGELOG
5.0.0
-----
* Removed the `scale` option of the `IntegerType`.
* Using the `date_format`, `date_widget`, and `time_widget` options of the `DateTimeType` when the `widget` option is
set to `single_text` is not supported anymore.
* The `format` option of `DateType` and `DateTimeType` cannot be used when the `html5` option is enabled.

View File

@ -59,10 +59,6 @@ class IntegerType extends AbstractType
IntegerToLocalizedStringTransformer::ROUND_UP,
IntegerToLocalizedStringTransformer::ROUND_CEILING,
]);
$resolver->setDefined('scale');
$resolver->setAllowedTypes('scale', ['null', 'int']);
$resolver->setDeprecated('scale');
}
/**

View File

@ -45,7 +45,7 @@ class DebugCommandTest extends TestCase
Built-in form types (Symfony\Component\Form\Extension\Core\Type)
----------------------------------------------------------------
IntegerType, TimeType
TimeType
Service form types
------------------