mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 01:03:13 +08:00
Drop support for PHP 8.2
This commit is contained in:
@@ -16,8 +16,8 @@ class DeleteShortUrlException extends DomainException implements ProblemDetailsE
|
||||
{
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Cannot delete short URL';
|
||||
public const ERROR_CODE = 'invalid-short-url-deletion';
|
||||
private const string TITLE = 'Cannot delete short URL';
|
||||
public const string ERROR_CODE = 'invalid-short-url-deletion';
|
||||
|
||||
public static function fromVisitsThreshold(int $threshold, ShortUrlIdentifier $identifier): self
|
||||
{
|
||||
|
||||
@@ -15,8 +15,8 @@ class DomainNotFoundException extends DomainException implements ProblemDetailsE
|
||||
{
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Domain not found';
|
||||
public const ERROR_CODE = 'domain-not-found';
|
||||
private const string TITLE = 'Domain not found';
|
||||
public const string ERROR_CODE = 'domain-not-found';
|
||||
|
||||
private function __construct(string $message, array $additional)
|
||||
{
|
||||
|
||||
@@ -14,8 +14,8 @@ class ForbiddenTagOperationException extends DomainException implements ProblemD
|
||||
{
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Forbidden tag operation';
|
||||
public const ERROR_CODE = 'forbidden-tag-operation';
|
||||
private const string TITLE = 'Forbidden tag operation';
|
||||
public const string ERROR_CODE = 'forbidden-tag-operation';
|
||||
|
||||
public static function forDeletion(): self
|
||||
{
|
||||
|
||||
@@ -16,8 +16,8 @@ class NonUniqueSlugException extends InvalidArgumentException implements Problem
|
||||
{
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Invalid custom slug';
|
||||
public const ERROR_CODE = 'non-unique-slug';
|
||||
private const string TITLE = 'Invalid custom slug';
|
||||
public const string ERROR_CODE = 'non-unique-slug';
|
||||
|
||||
public static function fromSlug(string $slug, string|null $domain = null): self
|
||||
{
|
||||
|
||||
@@ -16,8 +16,8 @@ class ShortUrlNotFoundException extends DomainException implements ProblemDetail
|
||||
{
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Short URL not found';
|
||||
public const ERROR_CODE = 'short-url-not-found';
|
||||
private const string TITLE = 'Short URL not found';
|
||||
public const string ERROR_CODE = 'short-url-not-found';
|
||||
|
||||
public static function fromNotFound(ShortUrlIdentifier $identifier): self
|
||||
{
|
||||
|
||||
@@ -16,8 +16,8 @@ class TagConflictException extends RuntimeException implements ProblemDetailsExc
|
||||
{
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Tag conflict';
|
||||
public const ERROR_CODE = 'tag-conflict';
|
||||
private const string TITLE = 'Tag conflict';
|
||||
public const string ERROR_CODE = 'tag-conflict';
|
||||
|
||||
public static function forExistingTag(Renaming $renaming): self
|
||||
{
|
||||
|
||||
@@ -15,8 +15,8 @@ class TagNotFoundException extends DomainException implements ProblemDetailsExce
|
||||
{
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Tag not found';
|
||||
public const ERROR_CODE = 'tag-not-found';
|
||||
private const string TITLE = 'Tag not found';
|
||||
public const string ERROR_CODE = 'tag-not-found';
|
||||
|
||||
public static function fromTag(string $tag): self
|
||||
{
|
||||
|
||||
@@ -21,8 +21,8 @@ class ValidationException extends InvalidArgumentException implements ProblemDet
|
||||
{
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Invalid data';
|
||||
public const ERROR_CODE = 'invalid-data';
|
||||
private const string TITLE = 'Invalid data';
|
||||
public const string ERROR_CODE = 'invalid-data';
|
||||
|
||||
private array $invalidElements;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user