-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(SystemTag): Add typed events for tag mapper events #54810
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
Conversation
d408934 to
88913f7
Compare
| } | ||
|
|
||
| /** | ||
| * @return 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.
Return type annotation is useless if not more specific than the strict types.
So it can either be removed or use proper type:
| * @return array | |
| * @return array{'objectType': string, 'objectId': string, 'tagIds': int[] } |
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.
mh. psalm doesn't like this
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.
Maybe the quoting is wrong / not needed, see https://psalm.dev/docs/annotating_code/type_syntax/array_types/#array-shapes
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.
Now it seems to work. Not sure what was the problem.
b4b89fa to
9fc78f0
Compare
9fc78f0 to
f2e121f
Compare
f2e121f to
b924df6
Compare
b924df6 to
3192567
Compare
Signed-off-by: Marcel Klehr <[email protected]>
3192567 to
2bb2fa5
Compare
provokateurin
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.
Could also use constructor property promotion, but I don't want to force you to do another round 🙈 Sorry for the back and forth 😞
|
please do not forget the tags :) |
|
/backport to stable32 |
Summary
This adds typed events for tag mapper events that are also exposed via webhooks.
Checklist