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
On this page
Latest version 9.0.1, released August 25, 2026. BSD-3-Clause license. Source repository
Its 8.0.0 release drops PHP 8.3. PHP end of life dates.
- From 8.0.0 to 9.0.0: 9 breaking changes in 1 version.
- From 5.0.0 to 9.0.0: 22 breaking changes in 4 versions.
sebastian/diff 9.0.0 breaking changes
- Removed
AbstractChunkOutputBuilder
The AbstractChunkOutputBuilder class was removed. Use StrictUnifiedDiffOutputBuilder instead. github.com - Removed
SebastianBergmann\Diff\LongestCommonSubsequenceCalculator
The LongestCommonSubsequenceCalculator interface was removed with no replacement named in the notes. packagist.org - Removed
SebastianBergmann\Diff\MemoryEfficientLongestCommonSubsequenceCalculator
The MemoryEfficientLongestCommonSubsequenceCalculator class was removed with no replacement named in the notes. packagist.org - Removed
SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder
SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder was removed in sebastian/diff 9.0.0 packagist.org - Removed
SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder
SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder was removed in sebastian/diff 9.0.0 packagist.org - Removed
SebastianBergmann\Diff\TimeEfficientLongestCommonSubsequenceCalculator
The TimeEfficientLongestCommonSubsequenceCalculator class was removed with no replacement named in the notes. packagist.org - Removed
UnifiedDiffOutputBuilder
The UnifiedDiffOutputBuilder class was removed. Use StrictUnifiedDiffOutputBuilder instead. github.com - Signature changed
SebastianBergmann\Diff\Differ::diff
The $lcs parameter of Differ::diff() was removed, so calls passing it no longer work. packagist.org - Signature changed
SebastianBergmann\Diff\Differ::diffToArray
The $lcs parameter of Differ::diffToArray() was removed, so calls passing it no longer work. packagist.org
sebastian/diff 8.0.0 breaking changes
- 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
sebastian/diff 7.0.0 breaking changes
- 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
sebastian/diff 6.0.0 breaking changes
- Removed
Support for PHP 8.1 was removed in 6.0.0. Upgrade PHP before using this version. github.com - Removed
SebastianBergmann\Diff\Chunk::getEnd
The getEnd() method on Chunk was removed in 6.0.0. Stop calling it. packagist.org - Removed
SebastianBergmann\Diff\Chunk::getEndRange
The getEndRange() method on Chunk was removed in 6.0.0. Stop calling it. packagist.org - Removed
SebastianBergmann\Diff\Chunk::getLines
The getLines() method on Chunk was removed in 6.0.0. Stop calling it. packagist.org - Removed
SebastianBergmann\Diff\Chunk::getStart
The getStart() method on Chunk was removed in 6.0.0. Stop calling it. packagist.org - Removed
SebastianBergmann\Diff\Chunk::getStartRange
The getStartRange() method on Chunk was removed in 6.0.0. Stop calling it. packagist.org - Removed
SebastianBergmann\Diff\Diff::getChunks
The getChunks() method on Diff was removed in 6.0.0. Stop calling it. packagist.org - Removed
SebastianBergmann\Diff\Diff::getFrom
The getFrom() method on Diff was removed in 6.0.0. Stop calling it. packagist.org - Removed
SebastianBergmann\Diff\Diff::getTo
The getTo() method on Diff was removed in 6.0.0. Stop calling it. packagist.org - Removed
SebastianBergmann\Diff\Line::getContent
The getContent() method on Line was removed in 6.0.0. Stop calling it. packagist.org
And 1 more in this version. Sign up to see every change
sebastian/diff 5.0.0 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 - Signature changed
Differ.__construct
Passing a DiffOutputBuilderInterface instance to Differ::__construct() is no longer optional, so callers must always supply one. github.com - Signature changed
SebastianBergmann\Diff\Differ::__construct
Was public function __construct($outputBuilder = null); now public function __construct(DiffOutputBuilderInterface $outputBuilder). packagist.org - 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 - 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
Related packages
- sebastian/cli-parser
- sebastian/code-unit
- sebastian/code-unit-reverse-lookup
- sebastian/comparator
- sebastian/complexity
- sebastian/environment
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.