-
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
Restore job with --prefer-lowest #10971
Conversation
4743f53
to
0e34fcf
Compare
composer.json
Outdated
@@ -32,18 +32,18 @@ | |||
"doctrine/instantiator": "^1.3 || ^2", | |||
"doctrine/lexer": "^2.1 || ^3", | |||
"doctrine/persistence": "^3.1.1", | |||
"psr/cache": "^1 || ^2 || ^3", | |||
"psr/cache": "^3", |
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.
We require the fluent interface provided by 3.0.0:
orm/lib/Doctrine/ORM/Query.php
Line 276 in 62ed63b
$queryCache->save($cacheItem->set($this->parserResult)->expiresAfter($this->queryCacheTTL)); |
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.
The fluent interface is part of the standard since v1.
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 guess the issue must be with a wrong implementation then.
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.
MockObject_CacheItemInterface_9583ebe3
Ah yes, that makes sense. The mocking framework won't enforce a phpdoc-provided return type.
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.
Fixed properly.
0e34fcf
to
b43759f
Compare
aca515e
to
eae50e6
Compare
It is useful to catch misconfigured dependency constraints. It was removed in 413c332. This implies configuring mocks so as to support psr/cache 1 psr/cache 1 does not use native return types, and phpdoc is not enough to obtain a mock that has typed methods.
eae50e6
to
2700998
Compare
It is useful to catch misconfigured dependency constraints. It was removed in #9069.