Skip to content
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

Deprecate passing date interval parameters as integers #5385

Merged
merged 1 commit into from
May 8, 2022

Conversation

morozov
Copy link
Member

@morozov morozov commented May 8, 2022

Q A
Type deprecation

This API will change in 4.0 (#3498).

@morozov morozov added this to the 3.4.0 milestone May 8, 2022
@morozov morozov marked this pull request as ready for review May 8, 2022 17:16
@morozov morozov requested review from greg0ire and derrabus May 8, 2022 17:16
@morozov morozov force-pushed the deprecate-date-int-intervals branch from 76036d8 to 7eb9b42 Compare May 8, 2022 17:50
* @param string $date
* @param int $seconds
* @param string $date
* @param int|numeric-string $seconds
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the string is supposed to be numeric, and SQL expressions are not possible here, is there still a point to that API change? It seems less convenient to use strings here. What am I missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is needed for the API consumer to be able to pass strings instead of integers in order to be compatible with both DBAL 3 and 4.

See doctrine/orm#9742 for more details.

@morozov morozov merged commit 2deb141 into doctrine:3.4.x May 8, 2022
@morozov morozov deleted the deprecate-date-int-intervals branch May 8, 2022 19:19
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants