-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] document the array shape of the content option #60342
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
AFAIK, this |
And this means that the type added in this PR is the wrong one. |
I have no idea how to read the code of the linked pull request in regard to the changes we want to do here. What would be the right array shape to use? |
Looking at the typescript types, they actually refer to the options supported by the |
9cba2a0
to
2b9721f
Compare
src/Symfony/Component/Notifier/Bridge/Mercure/MercureOptions.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Mercure/MercureOptions.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Mercure/MercureOptions.php
Outdated
Show resolved
Hide resolved
Thank you @xabbuh. |
but I wonder: is it actually correct that
$content
is an array, according to https://www.w3.org/TR/activitystreams-vocabulary/#dfn-content I would have guessed that it needs to be a string or (if it was an array), we would have to call itcontentMap
in the payload instead