mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-09 16:53:11 +08:00
Fix order in which entities are flushed in ShortUrlListRepositoryTest
This commit is contained in:
@@ -10,7 +10,7 @@ final readonly class Ordering
|
||||
private const ASC_DIR = 'ASC';
|
||||
private const DEFAULT_DIR = self::ASC_DIR;
|
||||
|
||||
private function __construct(public ?string $field, public string $direction)
|
||||
public function __construct(public ?string $field = null, public string $direction = self::DEFAULT_DIR)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
class ShortUrlsListFiltering extends ShortUrlsCountFiltering
|
||||
{
|
||||
public function __construct(
|
||||
public readonly ?int $limit,
|
||||
public readonly ?int $offset,
|
||||
public readonly Ordering $orderBy,
|
||||
public readonly ?int $limit = null,
|
||||
public readonly ?int $offset = null,
|
||||
public readonly Ordering $orderBy = new Ordering(),
|
||||
?string $searchTerm = null,
|
||||
array $tags = [],
|
||||
?TagsMode $tagsMode = null,
|
||||
|
||||
Reference in New Issue
Block a user