-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add DateInterval type parameter #6734
Conversation
Looks good to me. We need to plan something smarter for ORM v3 (maybe a replaceable infer mechanism? |
Tests with the lowest dependencies didn't pass: https://travis-ci.org/doctrine/doctrine2/jobs/280750301 |
Bumping dependency version for 2.6.x is quite OK
…On 28 Sep 2017 10:06, "Gocha Ossinkine" ***@***.***> wrote:
Tests with the lowest dependencies didn't pass: https://travis-ci.org/
doctrine/doctrine2/jobs/280750301
Should I increase the version in composer.json or add the version check in
the class?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6734 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJakImZk-LhM4lMDMcKo2qAUP0bPoBzks5sm1NqgaJpZM4Pm0FT>
.
|
ff2d81f
to
4fdbdab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thanks for the CS fixes as well 😄
[[2], Connection::PARAM_INT_ARRAY], | ||
[["foo"], Connection::PARAM_STR_ARRAY], | ||
[["1","2"], Connection::PARAM_STR_ARRAY], | ||
[[], Connection::PARAM_STR_ARRAY], | ||
[true, Type::BOOLEAN], | ||
]; | ||
]; | ||
|
||
if (PHP_VERSION_ID >= 50500) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, but we can simplify this since we require PHP 7.1+
@@ -17,7 +17,7 @@ | |||
"php": "^7.1", | |||
"ext-pdo": "*", | |||
"doctrine/collections": "^1.4", | |||
"doctrine/dbal": ">=2.5-dev,<2.7-dev", | |||
"doctrine/dbal": "^2.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we allow >=2.7-dev intentionally here or is it just accidental?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set it up intentionally for look at tests and they were passed, so I think it's ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was accidental =) It should indeed be >=2.6-dev,<2.7-dev
or even >=2.6-dev,<2.8-dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With how carefully we're checking BC, does it even matter? Might as well use the semver operator here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, fine as-is
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
…On Fri, Oct 13, 2017 at 11:31 AM, Luís Cobucci ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In composer.json
<#6734 (comment)>:
> @@ -17,7 +17,7 @@
"php": "^7.1",
"ext-pdo": "*",
"doctrine/collections": "^1.4",
- "doctrine/dbal": ">=2.5-dev,<2.7-dev",
+ "doctrine/dbal": "^2.6",
That's true... @Majkl578 <https://github.com/majkl578> @Ocramius
<https://github.com/ocramius> anything against that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6734 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJakBbJWF_AOnZkjstYlphXXFJ_lKgVks5sry4GgaJpZM4Pm0FT>
.
|
This PR adds the ability to pass a DateInterval object as a query parameter