bootstrap80.php 687 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\Php85 as p;
  11. if (\PHP_VERSION_ID >= 80500) {
  12. return;
  13. }
  14. if (extension_loaded('intl') && !function_exists('grapheme_levenshtein')) {
  15. function grapheme_levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1, string $locale = ''): int|false { return p\Php85::grapheme_levenshtein($string1, $string2, $insertion_cost, $replacement_cost, $deletion_cost); }
  16. }