mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixed: #11871 Replacing (deprecated) patchwork/utf8 by polyfill/mbstring.
This commit is contained in:
parent
9369165007
commit
8316a4eb92
|
@ -338,7 +338,7 @@ class CustomField extends Model
|
||||||
$id = $this->id ? $this->id : 'xx';
|
$id = $this->id ? $this->id : 'xx';
|
||||||
|
|
||||||
if (! function_exists('transliterator_transliterate')) {
|
if (! function_exists('transliterator_transliterate')) {
|
||||||
$long_slug = '_snipeit_'.str_slug(\Patchwork\Utf8::utf8_encode(trim($name)), '_');
|
$long_slug = '_snipeit_'.str_slug(\Polyfill\Mbstring::mb_convert_encoding(trim($name)), '_');
|
||||||
} else {
|
} else {
|
||||||
$long_slug = '_snipeit_'.Utf8Slugger::slugify($name, '_');
|
$long_slug = '_snipeit_'.Utf8Slugger::slugify($name, '_');
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
"nunomaduro/collision": "^5.4",
|
"nunomaduro/collision": "^5.4",
|
||||||
"onelogin/php-saml": "^3.4",
|
"onelogin/php-saml": "^3.4",
|
||||||
"paragonie/constant_time_encoding": "^2.3",
|
"paragonie/constant_time_encoding": "^2.3",
|
||||||
"patchwork/utf8": "^1.3",
|
"symfony/polyfill-mbstring": "^1.22",
|
||||||
"phpdocumentor/reflection-docblock": "^5.1",
|
"phpdocumentor/reflection-docblock": "^5.1",
|
||||||
"phpspec/prophecy": "^1.10",
|
"phpspec/prophecy": "^1.10",
|
||||||
"pragmarx/google2fa-laravel": "^1.3",
|
"pragmarx/google2fa-laravel": "^1.3",
|
||||||
|
|
Loading…
Reference in a new issue