bootstrap82.php 531 B

1234567891011121314151617181920
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. use Symfony\Polyfill\Php84 as p;
  11. if (\PHP_VERSION_ID >= 80400) {
  12. return;
  13. }
  14. if (extension_loaded('intl') && !function_exists('grapheme_str_split')) {
  15. function grapheme_str_split(string $string, int $length = 1): array|false { return p\Php84::grapheme_str_split($string, $length); }
  16. }