Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Exception misspell
Browse files Browse the repository at this point in the history
InvalidOptionsException instead of InvalidOptionException
  • Loading branch information
gaffel authored Apr 28, 2019
1 parent 248733c commit 6d8169b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Message/OptionsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ public function setDelayWhileIdle($delayWhileIdle)
*
* @return \LaravelFCM\Message\OptionsBuilder
*
* @throws InvalidOptionException
* @throws InvalidOptionsException
*/
public function setTimeToLive($timeToLive)
{
if ($timeToLive < 0 || $timeToLive > 2419200) {
throw new InvalidOptionException("time to live must be between 0 and 2419200, current value is: {$timeToLive}");
throw new InvalidOptionsException("time to live must be between 0 and 2419200, current value is: {$timeToLive}");
}
$this->timeToLive = $timeToLive;

Expand Down

0 comments on commit 6d8169b

Please sign in to comment.