Repository navigation
#43 - CI: test the lowest dependencies, require psr/log ^2|^3 - #44
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: newPHP 8.2 + lowest + normaljob (dependencies: lowest, i.e.composer update --prefer-lowest --prefer-stable).psr/log:^1|^2|^3→^2|^3. The lowest set resolvedpsr/log1.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
TaskLoggerofcleverage/process-bundle5.x, the loggerRequestTaskgets in an application, sopsr/log1 could not work either.cleverage/process-bundlenow requires^2|^3too.Checks
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.composer update: 32 tests OK, PHPStan OK,composer validate --strictOK.Requirements
Breaking changes
None in practice:
psr/log1 could not work (fatal error with the loggers ofcleverage/process-bundle5.x).🤖 Generated with Claude Code