Skip to content

Commit b7a1bfc

Browse files
FlorentPoinsautsebastianbergmann
authored andcommitted
Fix StrictUnifiedDiffOutputBuilder README example
This example raises an exception: ``` In StrictUnifiedDiffOutputBuilder.php line 328: Option "fromFile" must be a string, got "<null>". ```
1 parent 5acc6d5 commit b7a1bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ $builder = new StrictUnifiedDiffOutputBuilder([
7878
'collapseRanges' => true, // ranges of length one are rendered with the trailing `,1`
7979
'commonLineThreshold' => 6, // number of same lines before ending a new hunk and creating a new one (if needed)
8080
'contextLines' => 3, // like `diff: -u, -U NUM, --unified[=NUM]`, for patch/git apply compatibility best to keep at least @ 3
81-
'fromFile' => null,
81+
'fromFile' => '',
8282
'fromFileDate' => null,
83-
'toFile' => null,
83+
'toFile' => '',
8484
'toFileDate' => null,
8585
]);
8686

0 commit comments

Comments
 (0)