diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6143530..53ebd33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,17 +13,18 @@ on: jobs: tests: name: "Run tests" - runs-on: "ubuntu-20.04" + runs-on: "ubuntu-latest" strategy: matrix: php-version: - - "7.4" - - "8.0" - - "8.1" - "8.2" + - "8.2" + - "8.3" + - "8.4" + - "8.5" steps: - name: "Checkout" - uses: "actions/checkout@v4" + uses: "actions/checkout@v7" - name: "Install PHP" uses: "shivammathur/setup-php@v2" with: @@ -34,7 +35,7 @@ jobs: - name: "Validate composer.json and composer.lock" run: "composer validate --strict --no-interaction --ansi" - name: "Install dependencies with Composer" - uses: "ramsey/composer-install@v3" + uses: "ramsey/composer-install@v4" - name: "Run tests" run: "make test" @@ -44,16 +45,16 @@ jobs: static-analysis: name: "Static analysis" - runs-on: "ubuntu-20.04" + runs-on: "ubuntu-latest" steps: - name: "Checkout" - uses: "actions/checkout@v4" + uses: "actions/checkout@v7" - name: "Install PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.0" + php-version: "8.5" coverage: "none" - name: "Install dependencies with Composer" - uses: "ramsey/composer-install@v3" + uses: "ramsey/composer-install@v4" - name: "Run PHPStan" run: "make phpstan" diff --git a/composer.json b/composer.json index d119035..8628af7 100644 --- a/composer.json +++ b/composer.json @@ -5,12 +5,12 @@ "license": "MIT", "require": { "broadway/broadway": "^2.3.1", - "php": ">=7.2" + "php": "^8.2" }, "require-dev": { "phpunit/phpunit": "^8.0 || ^9.0", "broadway/coding-standard": "^1.2", - "phpstan/phpstan": "@stable", + "phpstan/phpstan": "^2.0", "phpspec/prophecy": "^1.15" }, "authors": [ diff --git a/src/EventSourcing/SnapshottingEventSourcingRepository.php b/src/EventSourcing/SnapshottingEventSourcingRepository.php index 7cc239f..de4e54d 100644 --- a/src/EventSourcing/SnapshottingEventSourcingRepository.php +++ b/src/EventSourcing/SnapshottingEventSourcingRepository.php @@ -34,7 +34,7 @@ public function __construct( EventStore $eventStore, SnapshotRepository $snapshotRepository, Trigger $trigger, - Snapshotter $snapshotter + Snapshotter $snapshotter, ) { $this->eventSourcingRepository = $eventSourcingRepository; $this->eventStore = $eventStore;