Skip to content

Commit 9663edd

Browse files
committed
StringUtil: fix contains
1 parent 527e999 commit 9663edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iTXTech/SimpleFramework/Util/StringUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function endsWith(string $str, string $suffix) : bool{
2626
}
2727

2828
public static function contains(string $str, string $s) : bool{
29-
return strpos($str, $s) > 0;
29+
return strpos($str, $s) !== false;
3030
}
3131

3232
public static function between(string $string, string $after, string $before, int $offset = 0) : string{

0 commit comments

Comments
 (0)