Improved tests to increase MSI to 70%

This commit is contained in:
Alejandro Celaya
2019-02-16 21:58:14 +01:00
parent 6c0893cdf8
commit 2175b8a7bb
6 changed files with 153 additions and 12 deletions

View File

@@ -3,11 +3,11 @@ declare(strict_types=1);
namespace Shlinkio\Shlink\Rest\Exception;
use Exception;
use Throwable;
class AuthenticationException extends RuntimeException
{
public static function expiredJWT(Exception $prev = null): self
public static function expiredJWT(?Throwable $prev = null): self
{
return new self('The token has expired.', -1, $prev);
}