Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit bcda276

Browse files
committed
Fixed wrong exception class in function and PHPDoc
1 parent 248733c commit bcda276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Message/OptionsBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ public function setDelayWhileIdle($delayWhileIdle)
160160
*
161161
* @return \LaravelFCM\Message\OptionsBuilder
162162
*
163-
* @throws InvalidOptionException
163+
* @throws InvalidOptionsException
164164
*/
165165
public function setTimeToLive($timeToLive)
166166
{
167167
if ($timeToLive < 0 || $timeToLive > 2419200) {
168-
throw new InvalidOptionException("time to live must be between 0 and 2419200, current value is: {$timeToLive}");
168+
throw new InvalidOptionsException("time to live must be between 0 and 2419200, current value is: {$timeToLive}");
169169
}
170170
$this->timeToLive = $timeToLive;
171171

0 commit comments

Comments
 (0)