Updated namespaces for Symfony's polyfill-ctype & polyfill-mbstring
This commit is contained in:
parent
49430f1bb1
commit
a0ff64f444
6 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Symfony\Polyfill\Ctype;
|
namespace ncc\Symfony\Polyfill\Ctype;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ctype implementation through regex.
|
* Ctype implementation through regex.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Symfony\Polyfill\Ctype as p;
|
use ncc\Symfony\Polyfill\Ctype as p;
|
||||||
|
|
||||||
if (\PHP_VERSION_ID >= 80000) {
|
if (\PHP_VERSION_ID >= 80000) {
|
||||||
return require __DIR__.'/bootstrap80.php';
|
return require __DIR__.'/bootstrap80.php';
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Symfony\Polyfill\Ctype as p;
|
use ncc\Symfony\Polyfill\Ctype as p;
|
||||||
|
|
||||||
if (!function_exists('ctype_alnum')) {
|
if (!function_exists('ctype_alnum')) {
|
||||||
function ctype_alnum(mixed $text): bool { return p\Ctype::ctype_alnum($text); }
|
function ctype_alnum(mixed $text): bool { return p\Ctype::ctype_alnum($text); }
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Symfony\Polyfill\Mbstring;
|
namespace ncc\Symfony\Polyfill\Mbstring;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Partial mbstring implementation in PHP, iconv based, UTF-8 centric.
|
* Partial mbstring implementation in PHP, iconv based, UTF-8 centric.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Symfony\Polyfill\Mbstring as p;
|
use ncc\Symfony\Polyfill\Mbstring as p;
|
||||||
|
|
||||||
if (\PHP_VERSION_ID >= 80000) {
|
if (\PHP_VERSION_ID >= 80000) {
|
||||||
return require __DIR__.'/bootstrap80.php';
|
return require __DIR__.'/bootstrap80.php';
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Symfony\Polyfill\Mbstring as p;
|
use ncc\Symfony\Polyfill\Mbstring as p;
|
||||||
|
|
||||||
if (!function_exists('mb_convert_encoding')) {
|
if (!function_exists('mb_convert_encoding')) {
|
||||||
function mb_convert_encoding(array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null): array|string|false { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }
|
function mb_convert_encoding(array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null): array|string|false { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }
|
||||||
|
|
Loading…
Add table
Reference in a new issue