From ee7b63736bd7d24d8f8b956d90ceb240b632fa89 Mon Sep 17 00:00:00 2001 From: othillo Date: Fri, 7 Aug 2026 21:03:04 +0200 Subject: [PATCH 1/4] ci: run on ubuntu-latest, update actions and PHP matrix --- .github/workflows/ci.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6143530..aab03ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,17 +13,16 @@ 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.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 +33,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 +43,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.4" coverage: "none" - name: "Install dependencies with Composer" - uses: "ramsey/composer-install@v3" + uses: "ramsey/composer-install@v4" - name: "Run PHPStan" run: "make phpstan" From 640fe119a30ccb9090c0efdd22471d1edf18c8ec Mon Sep 17 00:00:00 2001 From: othillo Date: Fri, 7 Aug 2026 21:17:39 +0200 Subject: [PATCH 2/4] ci: upgrade PHPStan to 2.x --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d119035..160fa58 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "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": [ From ae57d0a039d31ad3b491809436086a5f0c1615ad Mon Sep 17 00:00:00 2001 From: othillo Date: Fri, 7 Aug 2026 21:24:53 +0200 Subject: [PATCH 3/4] style: apply coding standards --- src/EventSourcing/SnapshottingEventSourcingRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 655bcf7ceb3e04225238436909c98f25834487a1 Mon Sep 17 00:00:00 2001 From: othillo Date: Fri, 7 Aug 2026 21:26:52 +0200 Subject: [PATCH 4/4] build!: require PHP 8.2 or higher BREAKING CHANGE: PHP 7 and PHP 8.0/8.1 are end of life and no longer supported. --- .github/workflows/ci.yml | 4 +++- composer.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aab03ad..53ebd33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,8 @@ jobs: strategy: matrix: php-version: + - "8.2" + - "8.2" - "8.3" - "8.4" - "8.5" @@ -50,7 +52,7 @@ jobs: - name: "Install PHP" uses: "shivammathur/setup-php@v2" with: - php-version: "8.4" + php-version: "8.5" coverage: "none" - name: "Install dependencies with Composer" uses: "ramsey/composer-install@v4" diff --git a/composer.json b/composer.json index 160fa58..8628af7 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "license": "MIT", "require": { "broadway/broadway": "^2.3.1", - "php": ">=7.2" + "php": "^8.2" }, "require-dev": { "phpunit/phpunit": "^8.0 || ^9.0",