Skip to content

Commit

Permalink
Merge aee0f48 into 8efa651
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Feb 8, 2020
2 parents 8efa651 + aee0f48 commit d312b3d
Show file tree
Hide file tree
Showing 148 changed files with 570 additions and 792 deletions.
11 changes: 2 additions & 9 deletions .travis.yml
Expand Up @@ -3,19 +3,12 @@ language: php
matrix:
fast_finish: true
include:
- php: 7.2
- php: 7.4
env:
- DEPENDENCIES=""
- EXECUTE_CS_CHECK=true
- TEST_COVERAGE=true
- php: 7.2
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 7.3
env:
- DEPENDENCIES=""
- TEST_COVERAGE=true
- php: 7.3
- php: 7.4
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"

Expand Down
4 changes: 2 additions & 2 deletions LICENSE
@@ -1,5 +1,5 @@
Copyright (c) 2018-2018, Alexander Miertsch
Copyright (c) 2018-2018, Sascha-Oliver Prolic
Copyright (c) 2014-2020, Alexander Miertsch
Copyright (c) 2015-2020, Sascha-Oliver Prolic
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -39,7 +39,7 @@ To establish a consistent code quality, please provide unit tests for all your c
| 5.x | EOL | >= 5.5 | EOL |
| 6.x | Maintained | >= 5.5 | 3 Dec 2017 |
| 7.x | Latest | >= 7.1 | active |
| 8.x | Development | >= 7.2 | active |
| 8.x | Development | >= 7.4 | active |

## License

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -17,16 +17,16 @@
],
"prefer-stable": true,
"require": {
"php": "^7.2",
"php": "^7.4",
"ext-json": "*",
"ramsey/uuid": "^3.8"
},
"require-dev": {
"amphp/amp": "^2.1.2",
"phpspec/prophecy": "^1.7.2",
"phpunit/phpunit": "^8.2.2",
"doctrine/instantiator": "^1.1",
"php-coveralls/php-coveralls": "^2.1",
"phpspec/prophecy": "^1.7.2",
"phpunit/phpunit": "^8.2.2",
"prooph/php-cs-fixer-config": "^0.3",
"sebastian/object-enumerator": "^3.0.3"
},
Expand Down
4 changes: 2 additions & 2 deletions src/AllCheckpoint.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
18 changes: 7 additions & 11 deletions src/AllEventsSlice.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -15,16 +15,12 @@

class AllEventsSlice
{
/** @var ReadDirection */
private $readDirection;
/** @var Position */
private $fromPosition;
/** @var Position */
private $nextPosition;
private ReadDirection $readDirection;
private Position $fromPosition;
private Position $nextPosition;
/** @var ResolvedEvent[] */
private $events;
/** @var bool */
private $isEndOfStream;
private array $events;
private bool $isEndOfStream;

/**
* @internal
Expand Down
4 changes: 2 additions & 2 deletions src/Async/CatchUpSubscriptionDropped.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
10 changes: 4 additions & 6 deletions src/Async/ClientAuthenticationFailedEventArgs.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -17,10 +17,8 @@

class ClientAuthenticationFailedEventArgs implements EventArgs
{
/** @var EventStoreConnection */
private $connection;
/** @var string */
private $reason;
private EventStoreConnection $connection;
private string $reason;

public function __construct(EventStoreConnection $connection, string $reason)
{
Expand Down
10 changes: 4 additions & 6 deletions src/Async/ClientClosedEventArgs.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -17,10 +17,8 @@

class ClientClosedEventArgs implements EventArgs
{
/** @var EventStoreConnection */
private $connection;
/** @var string */
private $reason;
private EventStoreConnection $connection;
private string $reason;

public function __construct(EventStoreConnection $connection, string $reason)
{
Expand Down
10 changes: 4 additions & 6 deletions src/Async/ClientConnectionEventArgs.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -18,10 +18,8 @@

class ClientConnectionEventArgs implements EventArgs
{
/** @var EventStoreConnection */
private $connection;
/** @var EndPoint */
private $remoteEndPoint;
private EventStoreConnection $connection;
private EndPoint $remoteEndPoint;

public function __construct(EventStoreConnection $connection, EndPoint $remoteEndPoint)
{
Expand Down
10 changes: 4 additions & 6 deletions src/Async/ClientErrorEventArgs.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -18,10 +18,8 @@

class ClientErrorEventArgs implements EventArgs
{
/** @var EventStoreConnection */
private $connection;
/** @var Throwable */
private $exception;
private EventStoreConnection $connection;
private Throwable $exception;

public function __construct(EventStoreConnection $connection, Throwable $exception)
{
Expand Down
7 changes: 3 additions & 4 deletions src/Async/ClientReconnectingEventArgs.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -17,8 +17,7 @@

class ClientReconnectingEventArgs implements EventArgs
{
/** @var EventStoreConnection */
private $connection;
private EventStoreConnection $connection;

public function __construct(EventStoreConnection $connection)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Async/EventAppearedOnCatchupSubscription.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Async/EventAppearedOnPersistentSubscription.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Async/EventAppearedOnSubscription.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Async/EventStoreAllCatchUpSubscription.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Async/EventStoreCatchUpSubscription.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
17 changes: 9 additions & 8 deletions src/Async/EventStoreConnection.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -14,6 +14,7 @@
namespace Prooph\EventStore\Async;

use Amp\Promise;
use Closure;
use Prooph\EventStore\AllEventsSlice;
use Prooph\EventStore\CatchUpSubscriptionSettings;
use Prooph\EventStore\ConditionalWriteResult;
Expand Down Expand Up @@ -241,17 +242,17 @@ public function connectToPersistentSubscriptionAsync(
?UserCredentials $userCredentials = null
): Promise;

public function onConnected(callable $handler): ListenerHandler;
public function onConnected(Closure $handler): ListenerHandler;

public function onDisconnected(callable $handler): ListenerHandler;
public function onDisconnected(Closure $handler): ListenerHandler;

public function onReconnecting(callable $handler): ListenerHandler;
public function onReconnecting(Closure $handler): ListenerHandler;

public function onClosed(callable $handler): ListenerHandler;
public function onClosed(Closure $handler): ListenerHandler;

public function onErrorOccurred(callable $handler): ListenerHandler;
public function onErrorOccurred(Closure $handler): ListenerHandler;

public function onAuthenticationFailed(callable $handler): ListenerHandler;
public function onAuthenticationFailed(Closure $handler): ListenerHandler;

public function detach(ListenerHandler $handler): void;
}
4 changes: 2 additions & 2 deletions src/Async/EventStorePersistentSubscription.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Async/EventStoreStreamCatchUpSubscription.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
19 changes: 7 additions & 12 deletions src/Async/EventStoreTransaction.php
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store.
* (c) 2014-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
* (c) 2014-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2015-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -21,16 +21,11 @@

class EventStoreTransaction
{
/** @var int */
private $transactionId;
/** @var UserCredentials|null */
private $userCredentials;
/** @var EventStoreTransactionConnection */
private $connection;
/** @var bool */
private $isRolledBack;
/** @var bool */
private $isCommitted;
private int $transactionId;
private ?UserCredentials $userCredentials;
private EventStoreTransactionConnection $connection;
private bool $isRolledBack;
private bool $isCommitted;

public function __construct(
int $transactionId,
Expand Down

0 comments on commit d312b3d

Please sign in to comment.