Skip to content

[Form] DateTimeToArrayTransformer fix #2629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 12, 2011
Merged

[Form] DateTimeToArrayTransformer fix #2629

merged 2 commits into from
Nov 12, 2011

Conversation

manuelderuiter
Copy link
Contributor

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -

0427b12 throws an TransformationFailedException if you're using integers. In other words:

array('year' => '2011', 'month' => '11', 'day' => '12') = valid
array('year' => 2011, 'month' => 11, 'day' => 12) = invalid

fabpot added a commit that referenced this pull request Nov 12, 2011
Commits
-------

462580c [Form] Check for normal integers. refs 0427b12
970e2a2 [Form] Replace `an` with `is`

Discussion
----------

[Form] DateTimeToArrayTransformer fix

Bug fix: yes
 Feature addition: no
 Backwards compatibility break: no
 Symfony2 tests pass: yes
 Fixes the following tickets: -
 Todo: -

0427b12 throws an `TransformationFailedException` if you're using integers. In other words:

`` array('year' => '2011', 'month' => '11', 'day' => '12') = valid ``
`` array('year' => 2011, 'month' => 11, 'day' => 12) = invalid ``
@fabpot fabpot merged commit 462580c into symfony:2.0 Nov 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants