Skip to content

Commit 2be0c51

Browse files
committed
Resolve #52 and fixes.
- Fixed calling Diff::getGroupedOpCodes() twice.
1 parent fda4852 commit 2be0c51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/jblond/Diff.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class Diff
7070
/**
7171
* @var array Associative array containing the options that will be applied for generating the diff.
7272
* The key-value pairs are set at the constructor of this class.
73+
*
7374
* @see Diff::setOptions()
7475
*/
7576
private $options = [];
@@ -232,7 +233,7 @@ public function getArrayRange(array $array, int $start = 0, $end = null): array
232233
*/
233234
public function isIdentical(): bool
234235
{
235-
if ($this->getGroupedOpCodes() === null) {
236+
if ($this->groupedCodes === null) {
236237
$this->getGroupedOpCodes();
237238
}
238239

0 commit comments

Comments
 (0)