mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
More type fixes
This commit is contained in:
parent
94d674ef96
commit
a5a19f947f
2 changed files with 2 additions and 2 deletions
|
@ -2354,7 +2354,7 @@ final class Ebook{
|
|||
*
|
||||
* @return array{ebooks: array<Ebook>, ebooksCount: int}
|
||||
*/
|
||||
public static function GetAllByFilter(string $query = null, array $tags = [], Enums\EbookSortType $sort = null, int $page = 1, int $perPage = EBOOKS_PER_PAGE, Enums\EbookReleaseStatusFilter $releaseStatusFilter = Enums\EbookReleaseStatusFilter::All): array{
|
||||
public static function GetAllByFilter(?string $query = null, array $tags = [], ?Enums\EbookSortType $sort = null, int $page = 1, int $perPage = EBOOKS_PER_PAGE, Enums\EbookReleaseStatusFilter $releaseStatusFilter = Enums\EbookReleaseStatusFilter::All): array{
|
||||
$limit = $perPage;
|
||||
$offset = (($page - 1) * $perPage);
|
||||
$orderByRelevance = false;
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace Exceptions;
|
|||
class WebhookException extends AppException{
|
||||
public ?string $PostData;
|
||||
|
||||
public function __construct(string $message = '', string $data = null){
|
||||
public function __construct(string $message = '', ?string $data = null){
|
||||
$this->PostData = $data;
|
||||
parent::__construct($message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue