remove the deprecated scale option of the IntegerType
This commit is contained in:
parent
1cc7067cc1
commit
47881a6c35
@ -4,6 +4,7 @@ CHANGELOG
|
|||||||
5.0.0
|
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
|
* 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.
|
set to `single_text` is not supported anymore.
|
||||||
* The `format` option of `DateType` and `DateTimeType` cannot be used when the `html5` option is enabled.
|
* The `format` option of `DateType` and `DateTimeType` cannot be used when the `html5` option is enabled.
|
||||||
|
@ -59,10 +59,6 @@ class IntegerType extends AbstractType
|
|||||||
IntegerToLocalizedStringTransformer::ROUND_UP,
|
IntegerToLocalizedStringTransformer::ROUND_UP,
|
||||||
IntegerToLocalizedStringTransformer::ROUND_CEILING,
|
IntegerToLocalizedStringTransformer::ROUND_CEILING,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$resolver->setDefined('scale');
|
|
||||||
$resolver->setAllowedTypes('scale', ['null', 'int']);
|
|
||||||
$resolver->setDeprecated('scale');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -45,7 +45,7 @@ class DebugCommandTest extends TestCase
|
|||||||
Built-in form types (Symfony\Component\Form\Extension\Core\Type)
|
Built-in form types (Symfony\Component\Form\Extension\Core\Type)
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
IntegerType, TimeType
|
TimeType
|
||||||
|
|
||||||
Service form types
|
Service form types
|
||||||
------------------
|
------------------
|
||||||
|
Reference in New Issue
Block a user