Skip to content

Commit fe69c4f

Browse files
committed
Fix warning with PHP 7.2 when trying to count NULL
1 parent 3b2b9e7 commit fe69c4f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/jblond/Diff/SequenceMatcher.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ class SequenceMatcher
5252
/**
5353
* @var array The first sequence to compare against.
5454
*/
55-
private $a = null;
55+
private $a = array();
5656

5757
/**
5858
* @var array The second sequence.
5959
*/
60-
private $b = null;
60+
private $b = array();
6161

6262
/**
6363
* @var array Array of characters that are considered junk from the second sequence. Characters are the array key.
@@ -110,8 +110,8 @@ class SequenceMatcher
110110
*/
111111
public function __construct($a, $b, $options, $junkCallback=null)
112112
{
113-
$this->a = null;
114-
$this->b = null;
113+
$this->a = array();
114+
$this->b = array();
115115
$this->junkCallback = $junkCallback;
116116
$this->setOptions($options);
117117
$this->setSequences($a, $b);
@@ -152,7 +152,7 @@ public function setSeq1($a)
152152
return;
153153
}
154154

155-
$this->a= $a;
155+
$this->a = $a;
156156
$this->matchingBlocks = null;
157157
$this->opCodes = null;
158158
}

0 commit comments

Comments
 (0)