Skip to content

#43 - CI: test the lowest dependencies, require psr/log ^2|^3 - #44

Merged
njoubert-cleverage merged 1 commit into
mainfrom
43
Oct 14, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
43

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #43: add a CI job testing the lowest versions allowed by composer.json, and fix the lower bound it revealed. Same change as cleverage/process-bundle#274 (PR cleverage/process-bundle#287).

Changes

  • .github/workflows/test.yml: new PHP 8.2 + lowest + normal job (dependencies: lowest, i.e. composer update --prefer-lowest --prefer-stable).
  • psr/log: ^1|^2|^3 → ^2|^3. The lowest set resolved psr/log 1.1.0, and the tests crash with:
    Fatal error: Declaration of Psr\Log\AbstractLogger@anonymous::log($level, Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::log($level, $message, array $context = [])
    The same signature is used by the TaskLogger of cleverage/process-bundle 5.x, the logger RequestTask gets in an application, so psr/log 1 could not work either. cleverage/process-bundle now requires ^2|^3 too.
  • CHANGELOG (Latest).

Checks

  • Locally, PHP 8.2 + composer update --prefer-lowest --prefer-stable (cleverage/process-bundle 5.0, psr/log 2.0.0, monolog/monolog 2.3.3, symfony/* 6.4.0, phpunit 11.5.50): 32 tests OK.
  • With the old bound, the same run resolves psr/log 1.1.0 and fails with the fatal error above.
  • PHP 8.5 + composer update: 32 tests OK, PHPStan OK, composer validate --strict OK.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None in practice: psr/log 1 could not work (fatal error with the loggers of cleverage/process-bundle 5.x).

🤖 Generated with Claude Code

Add a "PHP 8.2 + lowest" job to the test workflow, installing the lowest
versions allowed by composer.json (--prefer-lowest --prefer-stable).

The lowest set resolved psr/log 1.1.0, which crashes with a fatal error:
the loggers extending Psr\Log\AbstractLogger (in the tests, and the
TaskLogger of cleverage/process-bundle 5.x that RequestTask gets in an
application) use the typed log() signature of psr/log 2+. Require
psr/log ^2|^3, like cleverage/process-bundle.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit 6a2123d into main Oct 14, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: test the lowest dependencies

1 participant