---
title: "psr/log 3.0.0 Breaking Changes on Packagist | Since.dev"
description: "What each psr/log release removed, renamed or changed: 44 breaking changes in 2 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/psr/log
last_updated: 2026-12-04
---

# 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

Latest version `3.0.2`, released September 11, 2024. MIT license. [Source repository](https://github.com/php-fig/log)

Its 2.0.0 release requires [PHP 8.0](https://since.dev/calendar/php/8.0.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 22 breaking changes in 1 version.

## psr/log 3.0.0 breaking changes

psr/log 3.0.0, released July 14, 2021: 22 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](https://github.com/php-fig/log/releases/tag/3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **Signature changed** `Psr\Log\LoggerAwareInterface::setLogger`  

Was public function setLogger(LoggerInterface $logger); now public function setLogger(LoggerInterface $logger): void. [packagist.org](https://packagist.org/packages/psr/log#3.0.0)
- **Signature changed** `Psr\Log\LoggerAwareTrait::setLogger`  

Was public function setLogger(LoggerInterface $logger); now public function setLogger(LoggerInterface $logger): void. [packagist.org](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)
- **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](https://packagist.org/packages/psr/log#3.0.0)

## psr/log 2.0.0 breaking changes

psr/log 2.0.0, released July 14, 2021: 22 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](https://github.com/php-fig/log/releases/tag/2.0.0)
- **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](https://github.com/php-fig/log/releases/tag/2.0.0)
- **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](https://packagist.org/packages/psr/log#2.0.0)
- **Signature changed** `Psr\Log\LoggerAwareTrait::$logger`  

Was protected $logger; now protected ?LoggerInterface $logger. [packagist.org](https://packagist.org/packages/psr/log#2.0.0)
- **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](https://packagist.org/packages/psr/log#2.0.0)
- **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](https://packagist.org/packages/psr/log#2.0.0)
- **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](https://packagist.org/packages/psr/log#2.0.0)
- **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](https://packagist.org/packages/psr/log#2.0.0)
- **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](https://packagist.org/packages/psr/log#2.0.0)
- **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](https://packagist.org/packages/psr/log#2.0.0)

And 12 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [psr/http-message](https://since.dev/packages/packagist/psr/http-message.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
