We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Call the getName() method of either a Secret or a SecretVersion.
getName()
$projectId = 'beetlejuice-example'; $client = new SecretManagerServiceClient(); $parent = $client->projectName($projectId); $secretId = 'harry-belafonte-example'; $createSecretRequest = (new CreateSecretRequest()) ->setParent($parent) ->setSecretId($secretId) ->setSecret(new Secret([ 'replication' => new Replication([ 'automatic' => new Automatic(), ]), ])); $secret = $this->client->createSecret($createSecretRequest); echo $secret->getName();
The above code outputs many copies of the following pair of deprecation warnings:
DEPRECATED strlen(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php on line 1890. DEPRECATED strlen(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/google/protobuf/src/Google/Protobuf/Internal/GPBJsonWire.php on line 23.
The text was updated successfully, but these errors were encountered:
I believe this is the same issue as we've documented in protocolbuffers/protobuf#13428
I will try to fix this shortly
Sorry, something went wrong.
This has been fixed in the main branch of protobuf, and will be fixed in the next protobuf release (protocolbuffers/protobuf@6d84da5)
main
bshaffer
No branches or pull requests
Environment details
Steps to reproduce
Call the
getName()
method of either a Secret or a SecretVersion.Code example
The above code outputs many copies of the following pair of deprecation warnings:
The text was updated successfully, but these errors were encountered: