Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | use Symfony\Polyfill\Ctype as p; |
| 13 | |
| 14 | if (!function_exists('ctype_alnum')) { |
| 15 | function ctype_alnum(mixed $text): bool { return p\Ctype::ctype_alnum($text); } |
| 16 | } |
| 17 | if (!function_exists('ctype_alpha')) { |
| 18 | function ctype_alpha(mixed $text): bool { return p\Ctype::ctype_alpha($text); } |
| 19 | } |
| 20 | if (!function_exists('ctype_cntrl')) { |
| 21 | function ctype_cntrl(mixed $text): bool { return p\Ctype::ctype_cntrl($text); } |
| 22 | } |
| 23 | if (!function_exists('ctype_digit')) { |
| 24 | function ctype_digit(mixed $text): bool { return p\Ctype::ctype_digit($text); } |
| 25 | } |
| 26 | if (!function_exists('ctype_graph')) { |
| 27 | function ctype_graph(mixed $text): bool { return p\Ctype::ctype_graph($text); } |
| 28 | } |
| 29 | if (!function_exists('ctype_lower')) { |
| 30 | function ctype_lower(mixed $text): bool { return p\Ctype::ctype_lower($text); } |
| 31 | } |
| 32 | if (!function_exists('ctype_print')) { |
| 33 | function ctype_print(mixed $text): bool { return p\Ctype::ctype_print($text); } |
| 34 | } |
| 35 | if (!function_exists('ctype_punct')) { |
| 36 | function ctype_punct(mixed $text): bool { return p\Ctype::ctype_punct($text); } |
| 37 | } |
| 38 | if (!function_exists('ctype_space')) { |
| 39 | function ctype_space(mixed $text): bool { return p\Ctype::ctype_space($text); } |
| 40 | } |
| 41 | if (!function_exists('ctype_upper')) { |
| 42 | function ctype_upper(mixed $text): bool { return p\Ctype::ctype_upper($text); } |
| 43 | } |
| 44 | if (!function_exists('ctype_xdigit')) { |
| 45 | function ctype_xdigit(mixed $text): bool { return p\Ctype::ctype_xdigit($text); } |
| 46 | } |