Skip to content

Commit a346fcd

Browse files
committed
selectOne should use select underneath
1 parent 1e76773 commit a346fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Concerns/ManagesStaleReads.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function selectWithTimestampBound($query, $bindings = [], TimestampBoundI
5858
*/
5959
public function selectOneWithTimestampBound($query, $bindings = [], TimestampBoundInterface $timestampBound = null): ?array
6060
{
61-
return $this->cursorWithTimestampBound($query, $bindings, $timestampBound)->current();
61+
return $this->selectWithTimestampBound($query, $bindings, $timestampBound)[0] ?? null;
6262
}
6363
}
6464

0 commit comments

Comments
 (0)