From 60aebf57a8a6eb1afe76631dcea60f110a0bdfe8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 9 Jul 2016 16:25:43 +0200 Subject: [PATCH] Cast string to array --- Utils/StringUtils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/StringUtils.php b/Utils/StringUtils.php index 253c519ad..cfdb6bb91 100644 --- a/Utils/StringUtils.php +++ b/Utils/StringUtils.php @@ -53,7 +53,7 @@ class StringUtils public static function endsWith(string $haystack, $needles) : bool { if (is_string($needles)) { - self::endsWith($haystack, [$needles]); + $needles = [$needles]; } foreach ($needles as $needle) { @@ -79,7 +79,7 @@ class StringUtils public static function startsWith(string $haystack, $needles) : bool { if (is_string($needles)) { - self::startsWith($haystack, [$needles]); + $needles = [$needles]; } foreach ($needles as $needle) {