From 2c95f8d218a4e9439cea044e6b9386f494e8b7d7 Mon Sep 17 00:00:00 2001 From: George Steel Date: Mon, 11 Jul 2022 13:57:46 +0100 Subject: [PATCH] Extend Exception from Throwable --- CHANGELOG.md | 4 ++++ src/Exception.php | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 321929f..d196ec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 1.14.3 - Unreleased + +- [#207](https://github.com/php-http/discovery/pull/207) - Updates Exception to extend Throwable solving static analysis errors for consumers + ## 1.14.2 - 2022-05-25 - [#202](https://github.com/php-http/discovery/pull/202) - Avoid error when the Symfony PSR-18 client exists but its dependencies are not installed diff --git a/src/Exception.php b/src/Exception.php index 973c908..dbb8794 100644 --- a/src/Exception.php +++ b/src/Exception.php @@ -2,11 +2,12 @@ namespace Http\Discovery; +use Throwable; + /** * An interface implemented by all discovery related exceptions. - * * @author Tobias Nyholm */ -interface Exception +interface Exception extends Throwable { }