Skip to content

Commit 9b115a8

Browse files
burgoyn1jschroed91
authored andcommitted
changes the [] arrays to array() as it does not work in php 5.3 (#62)
1 parent 253f5db commit 9b115a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Caxy/HtmlDiff/LcsService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function longestCommonSubsequence(array $a, array $b)
6060
}
6161
}
6262

63-
$lcs = array_pad([], $m + 1, 0);
63+
$lcs = array_pad(array(), $m + 1, 0);
6464
$this->compileMatches($c, $a, $b, $m, $n, $lcs);
6565

6666
return $lcs;

lib/Caxy/HtmlDiff/ListDiffLines.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function getListItemOperations($oldListNode, $newListNode)
119119
$oldLength = count($oldListText);
120120
$newLength = count($newListText);
121121

122-
$operations = [];
122+
$operations = array();
123123
$currentLineInOld = 0;
124124
$currentLineInNew = 0;
125125
$lcsMatches[$oldLength + 1] = $newLength + 1;

0 commit comments

Comments
 (0)