1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-09-02 01:22:37 +02:00

type cast in startsWith && endsWith, test cases for this behavior

This commit is contained in:
Stanislav Dobrovolskiy
2015-01-05 00:59:10 +02:00
parent d661047fb3
commit 9da55d5d4f
2 changed files with 8 additions and 2 deletions

View File

@@ -637,7 +637,7 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
$startOfStr = mb_strtolower($startOfStr, $this->encoding);
}
return $substring === $startOfStr;
return (string) $substring === $startOfStr;
}
/**
@@ -662,7 +662,7 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
$endOfStr = mb_strtolower($endOfStr, $this->encoding);
}
return $substring === $endOfStr;
return (string) $substring === $endOfStr;
}
/**