Skip to content

Allow sebastian/diff ^8.0 and ^9.0 - #741

Open
edgrosvenor wants to merge 1 commit into
nunomaduro:masterfrom
edgrosvenor:sebastian-diff-9
Open

Allow sebastian/diff ^8.0 and ^9.0#741
edgrosvenor wants to merge 1 commit into
nunomaduro:masterfrom
edgrosvenor:sebastian-diff-9

Conversation

@edgrosvenor

Copy link
Copy Markdown

Domain/Differ.php uses only SebastianBergmann\Diff\Differ and StrictUnifiedDiffOutputBuilder, and never passes the $lcs parameter — so nothing it touches was affected by the 9.0 removals (UnifiedDiffOutputBuilder, AbstractChunkOutputBuilder, the LongestCommonSubsequenceCalculator interface and its implementations, and the $lcs parameter).

Without this, phpinsights transitively blocks consumers from upgrading to PHPUnit 13 / Pest 5, which require sebastian/diff ^9.0.

Constraint-only change; no source changes.

Related: cmgmyr/phploc#13 is the other half — phploc caps php-file-iterator at ^6, which blocks the same upgrade.

🤖 Generated with Claude Code

Differ.php only uses SebastianBergmann\Diff\Differ and
StrictUnifiedDiffOutputBuilder, and never passes the $lcs parameter. Both
survive in 9.0 — what 9.0 removed (UnifiedDiffOutputBuilder,
AbstractChunkOutputBuilder, the LongestCommonSubsequenceCalculator interface
and the $lcs parameter) is unused here.

Without this, phpinsights blocks consumers from moving to PHPUnit 13 / Pest 5,
which require sebastian/diff ^9.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant