From d3c73e4476eaada2fa5c9ac08c78cc7e24af4b53 Mon Sep 17 00:00:00 2001 From: Ollie Read Date: Fri, 25 Oct 2024 13:10:09 +0100 Subject: [PATCH] refactor: Remove unused parameter from NoTenantFound exception --- src/Exceptions/NoTenantFound.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Exceptions/NoTenantFound.php b/src/Exceptions/NoTenantFound.php index f73a5ee..de95641 100644 --- a/src/Exceptions/NoTenantFound.php +++ b/src/Exceptions/NoTenantFound.php @@ -18,16 +18,11 @@ final class NoTenantFound extends SproutException * * @param string $resolver * @param string $tenancy - * @param string|null $identity * * @return self */ - public static function make(string $resolver, string $tenancy, ?string $identity = null): self + public static function make(string $resolver, string $tenancy): self { - return new self( - $identity - ? 'No valid tenant [' . $tenancy . '] found for \'' . $identity . '\', resolved via [' . $resolver . ']' - : 'No valid tenant [' . $tenancy . '] found [' . $resolver . ']' - ); + return new self('No valid tenant [' . $tenancy . '] found [' . $resolver . ']'); } }