-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix customize notification example #13177
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
} | ||
|
||
return 'email'; | ||
return ['email']; |
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.
The Notification::getChannels(...)
methods needs to return an array.
@@ -500,10 +500,10 @@ very high and the recipient has a phonenumber:: | |||
&& $recipient instanceof AdminRecipient | |||
&& null !== $recipient->getPhone() | |||
) { | |||
return ['sms', 'email']; | |||
return ['sms']; |
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.
This example is about returning the sms channel only in case the price is high and the recipient has a phone number.
Can you change this line too:
|
@OskarStark fixed |
Thank you Jan. |
This PR was merged into the 5.0 branch. Discussion ---------- Fix customize notification example Commits ------- f6d8eae Fix customize notification example
No description provided.