Skip to content

Commit

Permalink
Make sure mb_convert_encoding also exists
Browse files Browse the repository at this point in the history
  • Loading branch information
anniel-stripe committed Jan 3, 2023
1 parent 1b01c65 commit 66eede1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Util/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function convertToStripeObject($resp, $opts)
public static function utf8($value)
{
if (null === self::$isMbstringAvailable) {
self::$isMbstringAvailable = \function_exists('mb_detect_encoding');
self::$isMbstringAvailable = \function_exists('mb_detect_encoding') && \function_exists('mb_convert_encoding');

if (!self::$isMbstringAvailable) {
\trigger_error('It looks like the mbstring extension is not enabled. ' .
Expand Down

0 comments on commit 66eede1

Please sign in to comment.