From b20d67f7e536b3324744adb8e041ae4d48c8dee7 Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Tue, 3 Dec 2019 18:01:00 -0800 Subject: [PATCH] Disable autoloader when checking for `Throwable` --- lib/Exception/ExceptionInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Exception/ExceptionInterface.php b/lib/Exception/ExceptionInterface.php index e411ab3d0..51a6d1c29 100644 --- a/lib/Exception/ExceptionInterface.php +++ b/lib/Exception/ExceptionInterface.php @@ -3,7 +3,7 @@ namespace Stripe\Exception; // TODO: remove this check once we drop support for PHP 5 -if (interface_exists(\Throwable::class)) { +if (interface_exists(\Throwable::class, false)) { /** * The base interface for all Stripe exceptions. *