Skip to content

Commit

Permalink
require Broadway 2.0 (#5)
Browse files Browse the repository at this point in the history
* require Broadway 2.0

* test PHP 7.2, not 5.6, no composer self-update

* show changelog
  • Loading branch information
othillo authored Dec 14, 2017
1 parent 168b38a commit 4a03c62
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"broadway/broadway": "^1.0"
"broadway/broadway": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^5.2"
Expand All @@ -27,7 +27,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "0.2.x-dev"
"dev-master": "0.3.x-dev"
}
}
}
2 changes: 1 addition & 1 deletion src/EventSourcing/SnapshottingEventSourcingRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/EventSourcing/Testing/TestEventSourcedAggregateRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class TestEventSourcedAggregateRoot extends EventSourcedAggregateRoot
/**
* {@inheritdoc}
*/
public function getAggregateRootId()
public function getAggregateRootId(): string
{
return 42;
return '42';
}
}

0 comments on commit 4a03c62

Please sign in to comment.