Skip to content

Commit

Permalink
Remove unnecessary assignation
Browse files Browse the repository at this point in the history
These unnecessary assignation in the example may mislead people to think that Payload is immutable and returns a copy instead of modifying itself.
  • Loading branch information
ahfeel authored Nov 7, 2017
1 parent c559f85 commit 1c072cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ $alert = $alert->setBody('First push notification');
$payload = Payload::create()->setAlert($alert);

//set notification sound to default
$payload = $payload->setSound('default');
$payload->setSound('default');

//add custom value to your notification, needs to be customized
$payload = $payload->setCustomValue('key', 'value');
$payload->setCustomValue('key', 'value');

$deviceTokens = ['<device_token_1>', '<device_token_2>', '<device_token_3>'];

Expand Down

0 comments on commit 1c072cc

Please sign in to comment.