bootstrap80.php 638 B

12345678910111213141516171819202122232425262728293031
  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\Php86 as p;
  11. if (\PHP_VERSION_ID >= 80600) {
  12. return;
  13. }
  14. if (!function_exists('clamp')) {
  15. /**
  16. * @template V
  17. * @template L
  18. * @template H
  19. *
  20. * @param V $value
  21. * @param L $min
  22. * @param H $max
  23. *
  24. * @return V|L|H
  25. */
  26. function clamp(mixed $value, mixed $min, mixed $max): mixed { return p\Php86::clamp($value, $min, $max); }
  27. }