Updated namespaces for Symfony's polyfill-ctype & polyfill-mbstring

This commit is contained in:
Netkas 2022-07-09 20:03:56 -04:00
parent 49430f1bb1
commit a0ff64f444
6 changed files with 6 additions and 6 deletions

View file

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Symfony\Polyfill\Ctype;
namespace ncc\Symfony\Polyfill\Ctype;
/**
* Ctype implementation through regex.

View file

@ -9,7 +9,7 @@
* 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) {
return require __DIR__.'/bootstrap80.php';

View file

@ -9,7 +9,7 @@
* 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')) {
function ctype_alnum(mixed $text): bool { return p\Ctype::ctype_alnum($text); }

View file

@ -9,7 +9,7 @@
* 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.

View file

@ -9,7 +9,7 @@
* 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) {
return require __DIR__.'/bootstrap80.php';

View file

@ -9,7 +9,7 @@
* 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')) {
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); }