psr/log breaking changes
psr/log 3.0.0 (July 14, 2021) is its newest release with breaking changes, 22 of them. The first: Added return types to the package's method signatures in psr/log 3.0.0. Every breaking API change we have recorded in psr/log on Packagist: 44 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.0.2, released September 11, 2024. MIT license. Source repository
Its 2.0.0 release requires PHP 8.0 or later. PHP end of life dates.
psr/log 3.0.0 breaking changes
- Signature changed
Methods now declare return types, so classes implementing the package's interfaces must declare compatible return types or PHP will raise a fatal error. github.com - Signature changed
Psr\Log\AbstractLogger::log
Was abstract public function log($level, string|\Stringable $message, array $context = []); now abstract public function log($level, string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerAwareInterface::setLogger
Was public function setLogger(LoggerInterface $logger); now public function setLogger(LoggerInterface $logger): void. packagist.org - Signature changed
Psr\Log\LoggerAwareTrait::setLogger
Was public function setLogger(LoggerInterface $logger); now public function setLogger(LoggerInterface $logger): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::alert
Was public function alert(string|\Stringable $message, array $context = []); now public function alert(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::critical
Was public function critical(string|\Stringable $message, array $context = []); now public function critical(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::debug
Was public function debug(string|\Stringable $message, array $context = []); now public function debug(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::emergency
Was public function emergency(string|\Stringable $message, array $context = []); now public function emergency(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::error
Was public function error(string|\Stringable $message, array $context = []); now public function error(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::info
Was public function info(string|\Stringable $message, array $context = []); now public function info(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::log
Was public function log($level, string|\Stringable $message, array $context = []); now public function log($level, string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::notice
Was public function notice(string|\Stringable $message, array $context = []); now public function notice(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerInterface::warning
Was public function warning(string|\Stringable $message, array $context = []); now public function warning(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::alert
Was public function alert(string|\Stringable $message, array $context = []); now public function alert(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::critical
Was public function critical(string|\Stringable $message, array $context = []); now public function critical(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::debug
Was public function debug(string|\Stringable $message, array $context = []); now public function debug(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::emergency
Was public function emergency(string|\Stringable $message, array $context = []); now public function emergency(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::error
Was public function error(string|\Stringable $message, array $context = []); now public function error(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::info
Was public function info(string|\Stringable $message, array $context = []); now public function info(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::log
Was abstract public function log($level, string|\Stringable $message, array $context = []); now abstract public function log($level, string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::notice
Was public function notice(string|\Stringable $message, array $context = []); now public function notice(string|\Stringable $message, array $context = []): void. packagist.org - Signature changed
Psr\Log\LoggerTrait::warning
Was public function warning(string|\Stringable $message, array $context = []); now public function warning(string|\Stringable $message, array $context = []): void. packagist.org
psr/log 2.0.0 breaking changes
- Behavior changed
The package now requires PHP 8.0 or later. Projects running older PHP versions must upgrade PHP before using this release. github.com - Signature changed
Parameter types were tightened and property types were added. Code that implements or extends the package's interfaces may need its type declarations updated to match. github.com - Signature changed
Psr\Log\AbstractLogger::log
Was public function log($level, $message, array $context = array()); now abstract public function log($level, string|\Stringable $message, array $context = []). packagist.org - Signature changed
Psr\Log\LoggerAwareTrait::$logger
Was protected $logger; now protected ?LoggerInterface $logger. packagist.org - Signature changed
Psr\Log\LoggerInterface::alert
Was public function alert($message, array $context = array()); now public function alert(string|\Stringable $message, array $context = []). packagist.org - Signature changed
Psr\Log\LoggerInterface::critical
Was public function critical($message, array $context = array()); now public function critical(string|\Stringable $message, array $context = []). packagist.org - Signature changed
Psr\Log\LoggerInterface::debug
Was public function debug($message, array $context = array()); now public function debug(string|\Stringable $message, array $context = []). packagist.org - Signature changed
Psr\Log\LoggerInterface::emergency
Was public function emergency($message, array $context = array()); now public function emergency(string|\Stringable $message, array $context = []). packagist.org - Signature changed
Psr\Log\LoggerInterface::error
Was public function error($message, array $context = array()); now public function error(string|\Stringable $message, array $context = []). packagist.org - Signature changed
Psr\Log\LoggerInterface::info
Was public function info($message, array $context = array()); now public function info(string|\Stringable $message, array $context = []). packagist.org
And 12 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.