ExceptionInterface.php 490 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Stripe\Exception;
  3. // TODO: remove this check once we drop support for PHP 5
  4. if (\interface_exists(\Throwable::class, false)) {
  5. /**
  6. * The base interface for all Stripe exceptions.
  7. */
  8. interface ExceptionInterface extends \Throwable
  9. {
  10. }
  11. } else {
  12. /**
  13. * The base interface for all Stripe exceptions.
  14. */
  15. // phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses
  16. interface ExceptionInterface
  17. {
  18. }
  19. // phpcs:enable
  20. }