Skip to content

Commit

Permalink
Remove mb_string extension requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrech committed May 3, 2024
1 parent 7a772ae commit 122f86c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Not released yet

* Remove mb_string extension requirement

## 0.1.0 (2023-13-03)

* Initial release
2 changes: 1 addition & 1 deletion src/OsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static function isUnix(): bool

public static function isWindowsSubsystemForLinux(): bool
{
return self::isUnix() && false !== mb_strpos(strtolower(php_uname()), 'microsoft');
return self::isUnix() && str_contains(strtolower(php_uname()), 'microsoft');
}

public static function isWindows(): bool
Expand Down

0 comments on commit 122f86c

Please sign in to comment.