From 5d224bcc02d754e451ea29a80377c164545a6172 Mon Sep 17 00:00:00 2001 From: Jay Potter Date: Sat, 25 Oct 2025 12:38:01 -0400 Subject: [PATCH] Extend Stringable --- composer.json | 3 ++- src/Potter/Throwable/ThrowableInterface.php | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2f7e7e4..5dda12e 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,8 @@ "name": "potter/throwable", "type": "library", "require": { - "php": "^8.4" + "php": "^8.4", + "potter/stringable": "dev-main" }, "license": "MIT", "autoload": { diff --git a/src/Potter/Throwable/ThrowableInterface.php b/src/Potter/Throwable/ThrowableInterface.php index 02fb4d7..05750d5 100644 --- a/src/Potter/Throwable/ThrowableInterface.php +++ b/src/Potter/Throwable/ThrowableInterface.php @@ -4,7 +4,9 @@ declare(strict_types=1); namespace Potter\Throwable; -interface ThrowableInterface +use \Potter\Stringable\StringableInterface; + +interface ThrowableInterface extends StringableInterface { }