You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow psr/log 3 next to 2 (^2.0 || ^3.0), so applications that already use psr/log 3, for example through Monolog 3, can install Quantum. Part of the PHP 8.1 update (#595).
Why
composer.json requires psr/log^2.0. Composer reports 3.0.2 as installable on PHP 8.1 but blocked by that constraint.
Widening the constraint is not enough on its own: symfony/console 5.4, which we require, declares a conflict with psr/log 3 or newer, so Composer cannot install psr/log 3 until the console moves to 6.4 (#596). This ticket therefore comes after #596. Quantum\Logger\Logger implements Psr\Log\LoggerInterface, and PHPMailer accepts any PSR-3 logger.
Current state
psr/log is used in 2 files under src: Logger (implements LoggerInterface) and ExceptionSeverityResolver (uses LogLevel).
Logger already declares : void on all level methods and log().
Proposed change
composer.json: "psr/log": "^2.0 || ^3.0".
Run the Logger tests (and the Mailer tests that use the logger) against both versions, for example with composer update psr/log --with psr/log:^3.0.
Activity
[quantum-php#599] Test every PSR-3 level method of the Logger
[#599] Allow psr/log 3 next to psr/log 2