Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional sort fields #145

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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