Skip to content

Commit

Permalink
minor #32768 [Form] remove the deprecated scale option of the Integer…
Browse files Browse the repository at this point in the history
…Type (xabbuh)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[Form] remove the deprecated scale option of the IntegerType

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

47881a6 remove the deprecated scale option of the IntegerType
  • Loading branch information
fabpot committed Jul 27, 2019
2 parents d8797c4 + 47881a6 commit d1f932e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Component/Form/CHANGELOG.md
Expand Up @@ -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.
Expand Down
Expand Up @@ -59,10 +59,6 @@ public function configureOptions(OptionsResolver $resolver)
IntegerToLocalizedStringTransformer::ROUND_UP,
IntegerToLocalizedStringTransformer::ROUND_CEILING,
]);

$resolver->setDefined('scale');
$resolver->setAllowedTypes('scale', ['null', 'int']);
$resolver->setDeprecated('scale');
}

/**
Expand Down
Expand Up @@ -45,7 +45,7 @@ public function testDebugDeprecatedDefaults()
Built-in form types (Symfony\Component\Form\Extension\Core\Type)
----------------------------------------------------------------
IntegerType, TimeType
TimeType
Service form types
------------------
Expand Down

0 comments on commit d1f932e

Please sign in to comment.