Skip to content

Commit

Permalink
refactor: Remove unused parameter from NoTenantFound exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Oct 25, 2024
1 parent c7bb727 commit d3c73e4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Exceptions/NoTenantFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . ']');
}
}

0 comments on commit d3c73e4

Please sign in to comment.