diff --git a/.travis.yml b/.travis.yml index f44a866..5238d9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,21 +3,21 @@ language: php sudo: false php: - - 5.6 - 7.0 - 7.1 + - 7.2 before_install: - phpenv config-rm xdebug.ini || return 0 - echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini || return 0 install: - - travis_retry composer self-update - travis_retry composer install - - composer info -i + - composer info script: - vendor/bin/phpunit + - git log $(git describe --abbrev=0 --tags)...HEAD --no-merges --pretty=format:"* [%h](http://github.com/${TRAVIS_REPO_SLUG}/commit/%H) %s (%cN)" branches: only: diff --git a/composer.json b/composer.json index c242028..a56e3a4 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "library", "license": "MIT", "require": { - "broadway/broadway": "^1.0" + "broadway/broadway": "^2.0" }, "require-dev": { "phpunit/phpunit": "^5.2" @@ -27,7 +27,7 @@ }, "extra": { "branch-alias": { - "dev-master": "0.2.x-dev" + "dev-master": "0.3.x-dev" } } } diff --git a/src/EventSourcing/SnapshottingEventSourcingRepository.php b/src/EventSourcing/SnapshottingEventSourcingRepository.php index ca51a67..90bc415 100644 --- a/src/EventSourcing/SnapshottingEventSourcingRepository.php +++ b/src/EventSourcing/SnapshottingEventSourcingRepository.php @@ -42,7 +42,7 @@ public function __construct( /** * {@inheritdoc} */ - public function load($id) + public function load($id): AggregateRoot { $snapshot = $this->snapshotRepository->load($id); if (null === $snapshot) { diff --git a/src/EventSourcing/Testing/TestEventSourcedAggregateRoot.php b/src/EventSourcing/Testing/TestEventSourcedAggregateRoot.php index 7c2b9e8..96dd9b0 100644 --- a/src/EventSourcing/Testing/TestEventSourcedAggregateRoot.php +++ b/src/EventSourcing/Testing/TestEventSourcedAggregateRoot.php @@ -18,8 +18,8 @@ class TestEventSourcedAggregateRoot extends EventSourcedAggregateRoot /** * {@inheritdoc} */ - public function getAggregateRootId() + public function getAggregateRootId(): string { - return 42; + return '42'; } }