mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Updated ValidationException's base exception
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user