-
Notifications
You must be signed in to change notification settings - Fork 439
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: inject database info on list databases #2656
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.
Looks good! Just a small note.
Spanner/src/Database.php
Outdated
@@ -183,14 +183,16 @@ public function __construct( | |||
$projectId, | |||
$name, | |||
SessionPoolInterface $sessionPool = null, | |||
$returnInt64AsObject = false | |||
$returnInt64AsObject = false, | |||
array $info = null |
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.
You could default the array in the signature here, instead of needing the elvis operator on line 195
array $info = null | |
array $info = [] |
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.
Done, thanks
fixes #2524