From c516fa7bccadde9fed93b695948732046e383f51 Mon Sep 17 00:00:00 2001 From: Niek Pijp Date: Mon, 27 Mar 2023 09:18:44 +0200 Subject: [PATCH] Don't let A & B be null when an empty array is passed --- lib/Diff/SequenceMatcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Diff/SequenceMatcher.php b/lib/Diff/SequenceMatcher.php index 71c9c630..d6da390d 100644 --- a/lib/Diff/SequenceMatcher.php +++ b/lib/Diff/SequenceMatcher.php @@ -131,7 +131,7 @@ public function setSeq1($a) if(!is_array($a)) { $a = str_split($a); } - if($a == $this->a) { + if($a === $this->a) { return; } @@ -151,7 +151,7 @@ public function setSeq2($b) if(!is_array($b)) { $b = str_split($b); } - if($b == $this->b) { + if($b === $this->b) { return; }