Skip to content

Commit

Permalink
fix return type of readAllEventsForward in sync impl
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Dec 7, 2018
1 parent 47f322e commit fd629c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/EventStoreSyncConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ public function readAllEventsForward(
int $count,
bool $resolveLinkTos = true,
?UserCredentials $userCredentials = null
): StreamEventsSlice;
): AllEventsSlice;

public function readAllEventsBackward(
Position $position,
int $count,
bool $resolveLinkTos = true,
?UserCredentials $userCredentials = null
): StreamEventsSlice;
): AllEventsSlice;

public function setStreamMetadata(
string $stream,
Expand Down
5 changes: 3 additions & 2 deletions src/Internal/EventStoreSyncNodeConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use Amp\Deferred;
use Amp\Promise;
use Prooph\EventStoreClient\AllEventsSlice;
use Prooph\EventStoreClient\ClientOperations\CommitTransactionOperation;
use Prooph\EventStoreClient\ClientOperations\StartTransactionOperation;
use Prooph\EventStoreClient\ClientOperations\TransactionalWriteOperation;
Expand Down Expand Up @@ -188,7 +189,7 @@ public function readAllEventsForward(
int $count,
bool $resolveLinkTos = true,
?UserCredentials $userCredentials = null
): StreamEventsSlice {
): AllEventsSlice {
return Promise\wait($this->asyncConnection->readAllEventsForwardAsync(
$position,
$count,
Expand All @@ -203,7 +204,7 @@ public function readAllEventsBackward(
int $count,
bool $resolveLinkTos = true,
?UserCredentials $userCredentials = null
): StreamEventsSlice {
): AllEventsSlice {
return Promise\wait($this->asyncConnection->readAllEventsBackwardAsync(
$position,
$count,
Expand Down

0 comments on commit fd629c7

Please sign in to comment.