diff --git a/src/Spanner/Connection/Grpc.php b/src/Spanner/Connection/Grpc.php index 738d57e7b379..9130b68c9f63 100644 --- a/src/Spanner/Connection/Grpc.php +++ b/src/Spanner/Connection/Grpc.php @@ -297,7 +297,6 @@ public function createDatabase(array $args) $res = $this->send([$this->databaseAdminClient, 'createDatabase'], [ $instanceName, $this->pluck('createStatement', $args), - $this->pluck('extraStatements', $args), $this->addResourcePrefixHeader($args, $instanceName) ]); diff --git a/tests/unit/Spanner/Connection/GrpcTest.php b/tests/unit/Spanner/Connection/GrpcTest.php index c66298a018e3..2de216822c03 100644 --- a/tests/unit/Spanner/Connection/GrpcTest.php +++ b/tests/unit/Spanner/Connection/GrpcTest.php @@ -230,7 +230,7 @@ public function methodProvider() [ 'createDatabase', ['instance' => $instanceName, 'createStatement' => $createStmt, 'extraStatements' => []], - [$instanceName, $createStmt, [], ['userHeaders' => ['google-cloud-resource-prefix' => [$instanceName]]]], + [$instanceName, $createStmt, ['extraStatements' => [], 'userHeaders' => ['google-cloud-resource-prefix' => [$instanceName]]]], $lro, null ],