PHP8.php 373 B

1234567891011121314151617
  1. <?php
  2. namespace React\Promise;
  3. /**
  4. * Dummy attribute used to comment out code for PHP < 8 to ensure compatibility across test matrix
  5. *
  6. * @copyright Copyright (c) 2023 Christian Lück, taken from https://github.com/clue/framework-x with permission
  7. */
  8. #[\Attribute]
  9. class PHP8
  10. {
  11. public function __construct()
  12. {
  13. assert(\PHP_VERSION_ID >= 80000);
  14. }
  15. }