Skip to content

Commit 2ca6828

Browse files
vladrusumheap
authored andcommitted
PHP 7.3 fix
Fix the error "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"
1 parent f192c84 commit 2ca6828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Message/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function send($message)
5858
foreach($data['messages'] as $part){
5959
switch($part['status']){
6060
case '0':
61-
continue; //all okay
61+
break; //all okay
6262
case '1':
6363
if(preg_match('#\[\s+(\d+)\s+\]#', $part['error-text'], $match)){
6464
usleep($match[1] + 1);
@@ -321,4 +321,4 @@ public function __call($name, $arguments)
321321

322322
return $this->send($message);
323323
}
324-
}
324+
}

0 commit comments

Comments
 (0)