Skip to content

Commit

Permalink
Fix typo and parameter type for setSortField
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Sep 12, 2023
1 parent ab0f23d commit d2a2f01
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Client/Options/ModSearch/ModSearchOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ModSearchOptions
* @param int|null $categoryId
* @param string|null $gameVersion
* @param string|null $searchFilter Filter by free text search in the mod name and author
* @param ModSearchSortField|null $sortFiled
* @param ModSearchSortField|null $sortField
* @param SortOrder|null $sortOrder
* @param ModLoaderType|null $modLoaderType Filter only mods associated to a given modloader (Forge, Fabric ...). Must be coupled with gameVersion.
* @param int|null $gameVersionTypeId Filter only mods that contain files tagged with versions of the given gameVersionTypeId
Expand All @@ -25,7 +25,7 @@ public function __construct(
protected ?int $categoryId = null,
protected ?string $gameVersion = null,
protected ?string $searchFilter = null,
protected ?ModSearchSortField $sortFiled = null,
protected ?ModSearchSortField $sortField = null,
protected ?SortOrder $sortOrder = null,
protected ?ModLoaderType $modLoaderType = null,
protected ?int $gameVersionTypeId = null,
Expand Down Expand Up @@ -132,16 +132,16 @@ public function setSearchFilter(?string $searchFilter): static
*/
public function getSortField(): ?ModSearchSortField
{
return $this->sortFiled;
return $this->sortField;
}

/**
* @param string|null $sortFiled
* @param ModSearchSortField|null $sortField
* @return $this
*/
public function setSortFiled(?string $sortFiled): static
public function setSortField(?ModSearchSortField $sortField): static
{
$this->sortFiled = $sortFiled;
$this->sortField = $sortField;
return $this;
}

Expand Down

0 comments on commit d2a2f01

Please sign in to comment.