---
title: "sebastian/diff 9.0.0 Breaking Changes on Packagist"
description: "What each sebastian/diff release removed, renamed or changed: 27 breaking changes in 5 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/sebastian/diff
last_updated: 2026-12-04
---

# sebastian/diff breaking changes

sebastian/diff 9.0.0 (June 5, 2026) is its newest release with breaking changes, 9 of them. The first: Removed AbstractChunkOutputBuilder. Every breaking API change we have recorded in sebastian/diff on Packagist: 27 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `9.0.1`, released August 25, 2026. BSD-3-Clause license. [Source repository](https://github.com/sebastianbergmann/diff)

Its 8.0.0 release drops [PHP 8.3](https://since.dev/calendar/php/8.3.md). [PHP end of life dates](https://since.dev/calendar/php.md).

- From [8.0.0](#v-8-0-0) to [9.0.0](#v-9-0-0): 9 breaking changes in 1 version.
- From [5.0.0](#v-5-0-0) to [9.0.0](#v-9-0-0): 22 breaking changes in 4 versions.

## sebastian/diff 9.0.0 breaking changes

sebastian/diff 9.0.0, released June 5, 2026: 9 breaking changes.

- **Removed** `AbstractChunkOutputBuilder`  

The AbstractChunkOutputBuilder class was removed. Use StrictUnifiedDiffOutputBuilder instead. [github.com](https://github.com/sebastianbergmann/diff/releases/tag/9.0.0)
- **Removed** `SebastianBergmann\Diff\LongestCommonSubsequenceCalculator`  

The LongestCommonSubsequenceCalculator interface was removed with no replacement named in the notes. [packagist.org](https://packagist.org/packages/sebastian/diff#9.0.0)
- **Removed** `SebastianBergmann\Diff\MemoryEfficientLongestCommonSubsequenceCalculator`  

The MemoryEfficientLongestCommonSubsequenceCalculator class was removed with no replacement named in the notes. [packagist.org](https://packagist.org/packages/sebastian/diff#9.0.0)
- **Removed** `SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder`  

SebastianBergmann\\Diff\\Output\\AbstractChunkOutputBuilder was removed in sebastian/diff 9.0.0 [packagist.org](https://packagist.org/packages/sebastian/diff#9.0.0)
- **Removed** `SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder`  

SebastianBergmann\\Diff\\Output\\UnifiedDiffOutputBuilder was removed in sebastian/diff 9.0.0 [packagist.org](https://packagist.org/packages/sebastian/diff#9.0.0)
- **Removed** `SebastianBergmann\Diff\TimeEfficientLongestCommonSubsequenceCalculator`  

The TimeEfficientLongestCommonSubsequenceCalculator class was removed with no replacement named in the notes. [packagist.org](https://packagist.org/packages/sebastian/diff#9.0.0)
- **Removed** `UnifiedDiffOutputBuilder`  

The UnifiedDiffOutputBuilder class was removed. Use StrictUnifiedDiffOutputBuilder instead. [github.com](https://github.com/sebastianbergmann/diff/releases/tag/9.0.0)
- **Signature changed** `SebastianBergmann\Diff\Differ::diff`  

The $lcs parameter of Differ::diff() was removed, so calls passing it no longer work. [packagist.org](https://packagist.org/packages/sebastian/diff#9.0.0)
- **Signature changed** `SebastianBergmann\Diff\Differ::diffToArray`  

The $lcs parameter of Differ::diffToArray() was removed, so calls passing it no longer work. [packagist.org](https://packagist.org/packages/sebastian/diff#9.0.0)

## sebastian/diff 8.0.0 breaking changes

sebastian/diff 8.0.0, released February 6, 2026: 1 breaking change.

- **Removed**  

The package no longer supports PHP 8.3, so users on PHP 8.3 must stay on version 7.x or upgrade PHP. [github.com](https://github.com/sebastianbergmann/diff/releases/tag/8.0.0)

## sebastian/diff 7.0.0 breaking changes

sebastian/diff 7.0.0, released February 7, 2025: 1 breaking change.

- **Removed**  

The component is no longer supported on PHP 8.3, so users on PHP 8.3 must stay on an earlier version or upgrade PHP. [github.com](https://github.com/sebastianbergmann/diff/releases/tag/7.0.0)

## sebastian/diff 6.0.0 breaking changes

sebastian/diff 6.0.0, released February 2, 2024: 11 breaking changes.

- **Removed**  

Support for PHP 8.1 was removed in 6.0.0. Upgrade PHP before using this version. [github.com](https://github.com/sebastianbergmann/diff/blob/6.0.0/ChangeLog.md)
- **Removed** `SebastianBergmann\Diff\Chunk::getEnd`  

The getEnd() method on Chunk was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)
- **Removed** `SebastianBergmann\Diff\Chunk::getEndRange`  

The getEndRange() method on Chunk was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)
- **Removed** `SebastianBergmann\Diff\Chunk::getLines`  

The getLines() method on Chunk was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)
- **Removed** `SebastianBergmann\Diff\Chunk::getStart`  

The getStart() method on Chunk was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)
- **Removed** `SebastianBergmann\Diff\Chunk::getStartRange`  

The getStartRange() method on Chunk was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)
- **Removed** `SebastianBergmann\Diff\Diff::getChunks`  

The getChunks() method on Diff was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)
- **Removed** `SebastianBergmann\Diff\Diff::getFrom`  

The getFrom() method on Diff was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)
- **Removed** `SebastianBergmann\Diff\Diff::getTo`  

The getTo() method on Diff was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)
- **Removed** `SebastianBergmann\Diff\Line::getContent`  

The getContent() method on Line was removed in 6.0.0. Stop calling it. [packagist.org](https://packagist.org/packages/sebastian/diff#6.0.0)

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

## sebastian/diff 5.0.0 breaking changes

sebastian/diff 5.0.0, released February 3, 2023: 5 breaking changes.

- **Removed**  

The package no longer supports PHP 7.3, 7.4 or 8.0, so those PHP versions must be upgraded before using this release. [github.com](https://github.com/sebastianbergmann/diff/blob/5.0.0/ChangeLog.md)
- **Signature changed** `Differ.__construct`  

Passing a DiffOutputBuilderInterface instance to Differ::\_\_construct() is no longer optional, so callers must always supply one. [github.com](https://github.com/sebastianbergmann/diff/blob/5.0.0/ChangeLog.md)
- **Signature changed** `SebastianBergmann\Diff\Differ::__construct`  

Was public function \_\_construct($outputBuilder = null); now public function \_\_construct(DiffOutputBuilderInterface $outputBuilder). [packagist.org](https://packagist.org/packages/sebastian/diff#5.0.0)
- **Signature changed** `SebastianBergmann\Diff\Differ::diff`  

Was public function diff($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): string; now public function diff(array|string $from, array|string $to, LongestCommonSubsequenceCalculator $lcs = null): string. [packagist.org](https://packagist.org/packages/sebastian/diff#5.0.0)
- **Signature changed** `SebastianBergmann\Diff\Differ::diffToArray`  

Was public function diffToArray($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): array; now public function diffToArray(array|string $from, array|string $to, LongestCommonSubsequenceCalculator $lcs = null): array. [packagist.org](https://packagist.org/packages/sebastian/diff#5.0.0)

## Related packages

- [sebastian/cli-parser](https://since.dev/packages/packagist/sebastian/cli-parser.md)
- [sebastian/code-unit](https://since.dev/packages/packagist/sebastian/code-unit.md)
- [sebastian/code-unit-reverse-lookup](https://since.dev/packages/packagist/sebastian/code-unit-reverse-lookup.md)
- [sebastian/comparator](https://since.dev/packages/packagist/sebastian/comparator.md)
- [sebastian/complexity](https://since.dev/packages/packagist/sebastian/complexity.md)
- [sebastian/environment](https://since.dev/packages/packagist/sebastian/environment.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.
