Skip to content

Optional sort fields#145

Open
John5 wants to merge 6 commits intophp-twinfield:masterfrom
John5:optional-sort-fields
Open

Optional sort fields#145
John5 wants to merge 6 commits intophp-twinfield:masterfrom
John5:optional-sort-fields

Conversation

@John5
Copy link
Contributor

@John5 John5 commented Jun 14, 2019

When using browse code 690 Twinfield will return an error when a sort fields are specified in the request. Without sort fields it works. The PHP Twinfield library currently requires sort fields. This change makes the sort fields optional.

Copy link
Contributor

@iranl iranl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a sensible addition

@@ -57,7 +57,7 @@ public function getCode(): string
* @param string $code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@param string $code should be changed to @param string|null $code

@@ -75,7 +75,7 @@ public function getNumber(): int
* @param int $number
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@param int $number should be changed to @param int|null $number

@@ -93,7 +93,7 @@ public function getLine(): int
* @param int $line
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@param int $line should be changed to @param int|null $line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants