Skip to content

Commit 39daa97

Browse files
committed
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); } ```
1 parent 6531d75 commit 39daa97

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/HydratorException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Patchlevel\Hydrator;
66

7-
interface HydratorException
7+
use Throwable;
8+
9+
interface HydratorException extends Throwable
810
{
911
}

0 commit comments

Comments
 (0)