-
Notifications
You must be signed in to change notification settings - Fork 102
[v1.4] Add word dictionary settings #571
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
[v1.4] Add word dictionary settings #571
Conversation
/** | ||
* @param list<non-empty-string> $wordDictionary | ||
*/ | ||
public function updateWordDictionary(array $wordDictionary): array |
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.
Can we typehint returned array structure?
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.
Yes, I thought about it, but all setting updates return a task, and none are specified, so I didn't put anything in.
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.
Then you could declare the Task return type in some file and then import the type where a task is returned,but then maybe in a separate PR :)
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.
I will create an issue about it. In the meantime I've just put array without details inside
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.
An alternative could be to introduce some value object that would hold the task info
I'd suggest to update CI to run with the docker image that supports these settings to see if tests works :) |
The pre-release arrives on Monday and I'll just change the base branch for a bump so that the tests can run on it. |
Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>
bc3d5c6
to
f6ff832
Compare
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.
LGTM!
Pull Request
Related issue
Fixes #569
What does this PR do?