diff --git a/src/Stringy.php b/src/Stringy.php index 32d14ca..7f6688d 100644 --- a/src/Stringy.php +++ b/src/Stringy.php @@ -780,8 +780,6 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess return false; } - $encoding = $this->encoding; - foreach ($needles as $needle) { if ($this->contains($needle, $caseSensitive)) { return true; @@ -806,8 +804,6 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess return false; } - $encoding = $this->encoding; - foreach ($needles as $needle) { if (!$this->contains($needle, $caseSensitive)) { return false;