bootstrap.php 837 B

1234567891011121314151617181920212223242526272829303132
  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 (!function_exists('get_error_handler')) {
  15. function get_error_handler(): ?callable { return p\Php85::get_error_handler(); }
  16. }
  17. if (!function_exists('get_exception_handler')) {
  18. function get_exception_handler(): ?callable { return p\Php85::get_exception_handler(); }
  19. }
  20. if (!function_exists('array_first')) {
  21. function array_first(array $array) { return p\Php85::array_first($array); }
  22. }
  23. if (!function_exists('array_last')) {
  24. function array_last(array $array) { return p\Php85::array_last($array); }
  25. }