From cdda6898d5f6357bf131ff7f4da1bfd1ed9a99e4 Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 8 Oct 2018 09:59:20 -0400 Subject: [PATCH] fix snippet parse error --- Bigtable/src/DataClient.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bigtable/src/DataClient.php b/Bigtable/src/DataClient.php index 84c8a8d94de..bcad78c74b0 100644 --- a/Bigtable/src/DataClient.php +++ b/Bigtable/src/DataClient.php @@ -348,13 +348,14 @@ public function sampleRowKeys(array $options = []) $options + $this->options ); - return (function () use ($stream) { + $callable = (function () use ($stream) { foreach ($stream->readAll() as $response) { yield [ 'rowKey' => $response->getRowKey(), 'offset' => $response->getOffsetBytes() ]; }; - })(); + }); + return $callable(); } }