Skip to content

Commit

Permalink
Fix tests and scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
daaner committed Jul 22, 2022
1 parent 2e16081 commit 2d5f593
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>

<testsuites>
<testsuite name="TurboSMS Test Suite">
<directory>./tests/</directory>
Expand Down
4 changes: 2 additions & 2 deletions src/TurboSMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function getResponse(string $url, array $body): array
public function getApi(): string
{
if (is_null($this->api)) {
$this->api = config('turbosms.api_key');
$this->api = (string) config('turbosms.api_key');
}

return $this->api;
Expand All @@ -220,7 +220,7 @@ public function setApi(string $api): self
public function getViberSender(): string
{
if (is_null($this->viberSender)) {
$this->viberSender = config('turbosms.viber_sender');
$this->viberSender = (string) config('turbosms.viber_sender');
}

return $this->viberSender;
Expand Down

0 comments on commit 2d5f593

Please sign in to comment.