Skip to content

Commit f5289db

Browse files
authored
Merge pull request #303 from markusramsak/patch-2
Update TaskCollection.php new Differ(null) not supported
2 parents c2e4d6a + f06cdd7 commit f5289db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminator/TaskCollection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use InvalidArgumentException;
1111
use RuntimeException;
1212
use SebastianBergmann\Diff\Differ;
13+
use SebastianBergmann\Diff\Output\DiffOnlyOutputBuilder;
1314

1415
class TaskCollection {
1516

@@ -187,7 +188,7 @@ public function run(string $path): bool {
187188
* @return void
188189
*/
189190
protected function displayDiff(string $oldContent, string $newContent): void {
190-
$differ = new Differ(null);
191+
$differ = new Differ(new DiffOnlyOutputBuilder());
191192
$array = $differ->diffToArray($oldContent, $newContent);
192193

193194
$begin = null;

0 commit comments

Comments
 (0)