Skip to content

[Form] Remove broken test case #42630

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 1 commit into from
Aug 20, 2021
Merged

Conversation

derrabus
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Part of #41552
License MIT
Doc PR N/A

If we try to parse a DateTime object solely from a day of year, like this…

$date = \DateTime::createFromFormat('z', '33');

… PHP 8.1 will refuse to do that with the error message

A 'day of year' can only come after a year has been found

The commit that caused this was php/php-src@8426623 by @derickr.

Our DateTimeToStringTransformerTest tests if that kind of transformation works, but I doubt that this covers an actual use case. This is why I propose to simply remove the failing test case.

Signed-off-by: Alexander M. Turek <me@derrabus.de>
@fabpot
Copy link
Member

fabpot commented Aug 20, 2021

Thank you @derrabus.

@fabpot fabpot merged commit 39c7744 into symfony:4.4 Aug 20, 2021
@derrabus derrabus deleted the bugfix/remove-day-of-year branch November 21, 2021 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants