Skip to content

Commit

Permalink
Fix PhpStan.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Apr 11, 2022
1 parent dffc3bb commit 61b2a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SmsSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function send(string $message, string $phoneNumber, int $defaultPrefix =
);

$response = (string) file_get_contents($this->apiUrl, false, $context);
if ($response) {
if ($response !== '') {
$this->processResponse($response);
}
}
Expand All @@ -87,7 +87,7 @@ private function processResponse(string $response): void
'/<status>(?:.|\s)*<id>(?<code>\d+)<\/id><message>(?<message>.+?)<\/message>/',
$response,
$parser,
)
) === 1
&& (int) $parser['code'] > 299
) {
throw new CanNotSendSmsException(
Expand Down

0 comments on commit 61b2a13

Please sign in to comment.