-
Notifications
You must be signed in to change notification settings - Fork 6
JPush: Add phpstan array shapes #37
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
base: release/0.11.x
Are you sure you want to change the base?
JPush: Add phpstan array shapes #37
Conversation
1a45fd3 to
46d8968
Compare
|
pprkut
left a comment
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.
Payload structure is too simple and should match the upstream documentation, just like FCM.
See here (in Chinese): https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push
| * JPush Message Payload Generator. | ||
| * | ||
| * @phpstan-type JPushMessagePayloadElements array{ | ||
| * platform: 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.
Platform is something like "all"|array<"android","ios","quickapp","hmos">
| * | ||
| * @phpstan-type JPushMessagePayloadElements array{ | ||
| * platform: string[], | ||
| * audience: array<string, mixed>, |
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.
"all" or array{"tag":?string[], "tag_and"?:string[], "tag_not"?:string[], "alias"?:string[], "registration_id"?:string[], "segment"?:string[], "abtest"?:string[]} or array{"live_activity_id":string}
46d8968 to
b1af90a
Compare
|



Depends on #36 for typos fix