Download Latest Version sebastian_diff 8.3.0 source code.tar.gz (14.0 kB)
Email in envelope

Get an email when there's a new version of sebastian/diff

Home / 8.3.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-15 1.5 kB
sebastian_diff 8.3.0 source code.tar.gz 2026-05-15 14.0 kB
sebastian_diff 8.3.0 source code.zip 2026-05-15 25.2 kB
Totals: 3 Items   40.8 kB 0

Added

  • #136: UnifiedDiffOutputBuilder now accepts a fourth $emitNoLineEndEofWarning constructor parameter (default true) to suppress the \ No newline at end of file marker for use cases such as PHPUnit comparison failures that are not related to files
  • #136: StrictUnifiedDiffOutputBuilder now accepts the options addLineNumbers, emitDiffLineEndWarning, emitNoLineEndEofWarning, and header

Changed

  • #136: UnifiedDiffOutputBuilder now returns an empty string when no difference is detected (previously: returned the header)
  • #136: UnifiedDiffOutputBuilder::writeHunk() now writes the actual \ No newline at end of file marker text (previously: wrote only a line break) and silently skips diff entries with unknown types

Deprecated

  • The SebastianBergmann\Diff\LongestCommonSubsequenceCalculator interface, its two implementations SebastianBergmann\Diff\TimeEfficientLongestCommonSubsequenceCalculator and SebastianBergmann\Diff\MemoryEfficientLongestCommonSubsequenceCalculator, and the $lcs parameter of SebastianBergmann\Diff\Differ::diff() and SebastianBergmann\Diff\Differ::diffToArray() are now deprecated; do not pass the $lcs parameter any more in preparation for the removal of these symbols and this parameter, respectively
Source: README.md, updated 2026-05-15