This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Form
Fabien Potencier 2e90a813a4 merged branch mrtorrent/integer_transformer_cast_fix (PR #2520)
Commits
-------

c9d05d7 Let NumberFormatter handle integer type casting

Discussion
----------

Let NumberFormatter handle integer type casting

The integer to localised string transformer is currently casting everything it gets to an integer, even if it is not a number. This responsibility should be passed off to NumberFormatter.

Partially addresses #2389 by not mistakenly typecasting a boolean false into an integer 0

---------------------------------------------------------------------------

by mrtorrent at 2011/10/30 15:04:28 -0700

Apologies, forgot the template:

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #2389 (partial)
2011-11-02 14:36:23 +01:00
..
Extension merged branch mrtorrent/integer_transformer_cast_fix (PR #2520) 2011-11-02 14:36:23 +01:00
Fixtures [Form] Reverted PR #1758. 2011-07-22 16:42:50 +02:00
Guess fixed CS 2011-06-08 19:56:59 +02:00
Util [Form] Simplified a bit FormUtil and extended test coverage 2011-10-07 12:04:26 +02:00
AbstractDivLayoutTest.php [Form] Improve unit tests for rendering 2011-06-22 10:27:21 +02:00
AbstractExtensionTest.php removed unused use statements 2011-10-29 11:56:30 +02:00
AbstractLayoutTest.php [Form] marked some tests as skipped when intl is not available 2011-10-26 14:23:39 +02:00
AbstractTableLayoutTest.php [Form] fixed xpath 2011-06-10 13:18:09 -07:00
FormBuilderTest.php removed unused use statements 2011-10-29 11:56:30 +02:00
FormFactoryTest.php Add missing "tearDown" functions, and some missing variable declaration (this saves for me almost 20MB when run all tests) 2011-06-16 15:06:36 +02:00
FormInterface.php fixed CS 2011-06-08 19:56:59 +02:00
FormTest.php [Form] simplified previous merge and fixed unit test 2011-07-04 12:13:46 +02:00
PropertyPathTest.php [Form] removed a constraint in PropertyPath as the path can definitely be an empty string for errors attached on the main form (when using a constraint defined with the 'validation_constraint' option) 2011-07-16 00:34:50 +02:00