Files
piratepoet/lib/Util/Polyfills.php
Pavel Dohnal bed80e67f1 Use phpstan level 2
[MAILPOET-1822]
2019-02-21 13:49:52 -05:00

30 lines
805 B
PHP

<?php
if (!defined('ABSPATH')) exit;
use Symfony\Polyfill\Mbstring\Mbstring as MbstringPolyfill;
if (!function_exists('mb_detect_encoding')) {
function mb_detect_encoding($str, $encodingList = null, $strict = false) {
return MbstringPolyfill::mb_detect_encoding($str, $encodingList, $strict);
}
}
if (!function_exists('mb_convert_encoding')) {
function mb_convert_encoding($s, $to, $from = null) {
return MbstringPolyfill::mb_convert_encoding($s, $to, $from);
}
}
if (!function_exists('mb_strtoupper')) {
function mb_strtoupper($s, $encoding = 'UTF-8') {
return MbstringPolyfill::mb_strtoupper($s, $encoding);
}
}
if (!function_exists('mb_detect_order')) {
function mb_detect_order($encodingList = null) {
return MbstringPolyfill::mb_detect_order($encodingList);
}
}