-
Notifications
You must be signed in to change notification settings - Fork 443
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
feat: Move v2 translate client #2423
Conversation
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.
Is it feasible to leave the service definition in src/Connection
? Also, do you think moving the contract would be breaking? Wondering if we can alias that too.
Core/src/ServiceBuilder.php
Outdated
@@ -30,7 +30,7 @@ | |||
use Google\Cloud\Speech\SpeechClient; | |||
use Google\Cloud\Storage\StorageClient; | |||
use Google\Cloud\Trace\TraceClient; | |||
use Google\Cloud\Translate\TranslateClient; | |||
use Google\Cloud\Translate\V2\TranslateClient; |
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.
Is it possible to leave this as use Google\Cloud\Translate\TranslateClient
? It is a bit of a gray area, since the classes are identical in practice - but the returned type will vary. If anyone is doing typechecks they might fail.
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.
yes, but they will get the suppressed E_USER_DEPRECATED
notice. I guess you're probably right though, this should be considered breaking.
Codecov Report
@@ Coverage Diff @@
## master #2423 +/- ##
============================================
- Coverage 92.55% 92.47% -0.08%
+ Complexity 4504 4477 -27
============================================
Files 312 312
Lines 13496 13414 -82
============================================
- Hits 12491 12405 -86
- Misses 1005 1009 +4
Continue to review full report at Codecov.
|
No description provided.