Updated ValidationException's base exception

This commit is contained in:
Alejandro Celaya
2019-11-26 20:58:38 +01:00
parent a28ef1f176
commit 13e795d25d
4 changed files with 7 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ use function sprintf;
use const PHP_EOL;
class ValidationException extends RuntimeException implements ProblemDetailsExceptionInterface
class ValidationException extends InvalidArgumentException implements ProblemDetailsExceptionInterface
{
use CommonProblemDetailsExceptionTrait;

View File

@@ -130,6 +130,7 @@ class UrlShortener implements UrlShortenerInterface
/**
* @throws ShortUrlNotFoundException
* @fixme Move this method to a different service
*/
public function shortCodeToUrl(string $shortCode, ?string $domain = null): ShortUrl
{