Skip to content

Commit d002705

Browse files
Ocramiusramunasd
authored andcommitted
AMQP Exception marker interface is for Throwable types
This change fixes downstream `catch` mechanisms' type soundness, which rely on a `class-string<Throwable>` being used.
1 parent 91fd00e commit d002705

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PhpAmqpLib/Exception/AMQPExceptionInterface.php

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

33
namespace PhpAmqpLib\Exception;
44

5-
interface AMQPExceptionInterface
5+
use Throwable;
6+
7+
interface AMQPExceptionInterface extends Throwable
68
{
79
}

0 commit comments

Comments
 (0)