Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning with PHP 7.2 when trying to count NULL #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/Diff/SequenceMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ class Diff_SequenceMatcher
/**
* @var array The first sequence to compare against.
*/
private $a = null;
private $a = array();

/**
* @var array The second sequence.
*/
private $b = null;
private $b = array();

/**
* @var array Array of characters that are considered junk from the second sequence. Characters are the array key.
Expand Down Expand Up @@ -86,8 +86,8 @@ class Diff_SequenceMatcher
*/
public function __construct($a, $b, $junkCallback=null, $options)
{
$this->a = null;
$this->b = null;
$this->a = array();
$this->b = array();
$this->junkCallback = $junkCallback;
$this->setOptions($options);
$this->setSequences($a, $b);
Expand Down Expand Up @@ -739,4 +739,4 @@ private function tupleSort($a, $b)
return 1;
}
}
}
}