-
Notifications
You must be signed in to change notification settings - Fork 78
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
base: master
Are you sure you want to change the base?
Optional sort fields #145
Conversation
Some requests do not allow sortFields so they need to made optional.
There was a problem hiding this 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
src/BrowseDataRow.php
Outdated
@@ -57,7 +57,7 @@ public function getCode(): string | |||
* @param string $code |
There was a problem hiding this comment.
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
src/BrowseDataRow.php
Outdated
@@ -75,7 +75,7 @@ public function getNumber(): int | |||
* @param int $number |
There was a problem hiding this comment.
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
src/BrowseDataRow.php
Outdated
@@ -93,7 +93,7 @@ public function getLine(): int | |||
* @param int $line |
There was a problem hiding this comment.
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
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.