From 39daa97fc2e226906dc3f6bae4654d4b37ec0a72 Mon Sep 17 00:00:00 2001 From: George Steel Date: Fri, 1 May 2026 16:07:01 +0100 Subject: [PATCH] `HydratorException` should be `Throwable` This is a technical BC break, but it's extremely unlikely that users will have implemented this interface on a non-throwable. This fixes code for static analysers such as: ```php try { return $hydrator->extract($object); } catch(HydratorException $e) { throw new MyException('Foo', 0, $e); } ``` --- src/HydratorException.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HydratorException.php b/src/HydratorException.php index 5cc9811c..7b080a8d 100644 --- a/src/HydratorException.php +++ b/src/HydratorException.php @@ -4,6 +4,8 @@ namespace Patchlevel\Hydrator; -interface HydratorException +use Throwable; + +interface HydratorException extends Throwable { }