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
Added loc-title and other localisation support #101
Added loc-title and other localisation support #101
Conversation
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.
Thanks for this, just a couple of things.
- Could you please fix the StyleCI errors
- Could you please add tests for the new methods - should be pretty relatively easy to copy existing
ApnMessage
tests
With that I'll be able to merge in and tag a new release.
src/ApnMessage.php
Outdated
/** | ||
* Variable string values to appear in place of the format specifiers in title-loc-key. | ||
* | ||
* @var string[]|null |
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.
Just do @var string|null
- I don't think we've used the array syntax in this project.
src/ApnMessage.php
Outdated
/** | ||
* A key to an alert-message string in a Localizable.strings file for the current localization. | ||
* | ||
* @var string |
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.
Could you please add |null
here.
src/ApnMessage.php
Outdated
/** | ||
* Variable string values to appear in place of the format specifiers in loc-key. | ||
* | ||
* @var 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.
Could you please add |null
here also.
Awesome, thanks so much! |
Localisation support