Skip to content

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 <[email protected]>
@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