Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stripe/stripe-php
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 82297a64c9c76654947d5f2424e589a97856c4c8
Choose a base ref
..
head repository: stripe/stripe-php
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7ba41b719983a6c8830163d19a5867cee297b605
Choose a head ref
Showing with 21 additions and 9 deletions.
  1. +21 −9 lib/Exception/ExceptionInterface.php
30 changes: 21 additions & 9 deletions lib/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -2,13 +2,25 @@

namespace Stripe\Exception;

/**
* The base interface for all Stripe exceptions.
*
* @package Stripe\Exception
*
* @todo extend \Throwable once we drop support for PHP 5.6
*/
interface ExceptionInterface // extends \Throwable
{
// TODO: remove this check once we drop support for PHP 5
if (interface_exists(\Throwable::class)) {
/**
* The base interface for all Stripe exceptions.
*
* @package Stripe\Exception
*/
interface ExceptionInterface extends \Throwable
{
}
} else {
/**
* The base interface for all Stripe exceptions.
*
* @package Stripe\Exception
*/
// phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses
interface ExceptionInterface
{
}
// phpcs:enable
}