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