diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6dd7b49..b5f96e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,8 @@ jobs: strategy: matrix: os: [ubuntu-latest, macOS-latest] - php-version: ['8.1', '8.2'] + php-version: ['8.1', '8.2', '8.3'] + dependencies: ['lowest', 'highest'] name: 'PHPUnit' steps: - name: Checkout @@ -22,6 +23,8 @@ jobs: ini-values: xdebug.max_nesting_level=2048 - name: Composer uses: "ramsey/composer-install@v2" + with: + dependency-versions: ${{ matrix.dependencies }} - name: PHPUnit run: vendor/bin/phpunit --coverage-clover=coverage.clover - uses: codecov/codecov-action@v1 @@ -31,7 +34,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: ['8.1', '8.2'] + php-version: ['8.1', '8.2', '8.3'] + dependencies: ['lowest', 'highest'] name: 'Psalm' steps: - name: Checkout @@ -43,6 +47,8 @@ jobs: extensions: mbstring, intl - name: Composer uses: "ramsey/composer-install@v2" + with: + dependency-versions: ${{ matrix.dependencies }} - name: Psalm run: vendor/bin/psalm --shepherd cs: diff --git a/CHANGELOG.md b/CHANGELOG.md index dd59114..8207a66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.1.0 - 2023-09-24 + +### Added + +- Support for `innmind/immutable:~5.0` + ## 3.0.3 - 2023-05-01 ### Fixed diff --git a/composer.json b/composer.json index 1ff97d5..5d9bbfa 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ }, "require": { "php": "~8.1", - "innmind/immutable": "~4.13", + "innmind/immutable": "~4.13|~5.0", "ramsey/uuid": "~4.7", "innmind/operating-system": "~3.7", "innmind/framework": "~1.1", diff --git a/src/Profiler/Load.php b/src/Profiler/Load.php index c8dae5e..977e9eb 100644 --- a/src/Profiler/Load.php +++ b/src/Profiler/Load.php @@ -66,6 +66,7 @@ public function __invoke(Directory $raw): Maybe }) ->flatMap(function($start) use ($raw) { if (!\is_array($start)) { + /** @var Maybe */ return Maybe::nothing(); } @@ -110,6 +111,7 @@ private function exit(Profile $profile, Directory $raw): Profile }) ->flatMap(static function($exit) { if (!\is_array($exit)) { + /** @var Maybe */ return Maybe::nothing(); }