Skip to content

Commit dd07685

Browse files
committed
Code Fixes.
- Corrected InvalidArgumentException import for SequenceMatcher class. - Removed obsolete argument at Diff::getGroupedOpCodes().
1 parent fbda2bd commit dd07685

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/jblond/Diff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function getGroupedOpCodes(): array
237237

238238
//Get and cache the grouped op-codes.
239239
$sequenceMatcher = new SequenceMatcher($this->version1, $this->version2, $this->options);
240-
$this->groupedCodes = $sequenceMatcher->getGroupedOpCodes($this->options['context']);
240+
$this->groupedCodes = $sequenceMatcher->getGroupedOpCodes();
241241

242242
return $this->groupedCodes;
243243
}

lib/jblond/Diff/SequenceMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace jblond\Diff;
66

7-
use http\Exception\InvalidArgumentException;
7+
use InvalidArgumentException;
88

99
/**
1010
* Sequence matcher for Diff

0 commit comments

Comments
 (0)