-
-
Notifications
You must be signed in to change notification settings - Fork 0
UnifiedDiffer
github-actions edited this page Apr 19, 2026
·
1 revision
Generates unified diffs using the default Sebastian diff output builder.
- Full name:
\FastForward\DevTools\Resource\UnifiedDiffer - This class is marked as final and can't be subclassed
- This class implements:
\FastForward\DevTools\Resource\DifferInterface - This class is a Final class
Creates a new unified differ.
public __construct(\SebastianBergmann\Diff\Differ $differ): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$differ |
\SebastianBergmann\Diff\Differ | the underlying Sebastian differ |
Generates a unified diff between current and updated content.
public diff(string $currentContent, string $updatedContent): stringParameters:
| Parameter | Type | Description |
|---|---|---|
$currentContent |
string | the current content |
$updatedContent |
string | the updated content |
Return Value:
the unified diff