Skip to content

Commit

Permalink
solve lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ajupazhamayil committed Dec 8, 2022
1 parent fe07619 commit 1723558
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Spanner/src/Connection/Grpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,10 @@ public function createSession(array $args)
$session = $this->pluck('session', $args, false);
if ($session) {
$args['session'] = $this->serializer->decodeMessage(new Session,
array_filter($session, fn ($value) => !is_null($value)));
array_filter($session, function ($value) {
return !is_null($value);
}
));
}

return $this->send([$this->spannerClient, 'createSession'], [
Expand Down

0 comments on commit 1723558

Please sign in to comment.