Issues (5)

examples/bc-balance-get.php (1 issue)

Labels
Severity
1
<?php
2
3
require '../vendor/autoload.php';
4
5
$credentials = \Promopult\TikTokMarketingApi\Credentials::fromAccessToken(
6
    getenv('__ACCESS_TOKEN__')
7
);
8
9
$httpClient = new \GuzzleHttp\Client();
10
11
$client = new \Promopult\TikTokMarketingApi\Client(
12
    $credentials,
13
    $httpClient
14
);
15
16
$resp = $client->bc->balanceGet(
17
    getenv('__BC_ID__')
0 ignored issues
show
getenv('__BC_ID__') of type string is incompatible with the type integer expected by parameter $bcId of Promopult\TikTokMarketin...ervice\Bc::balanceGet(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

17
    /** @scrutinizer ignore-type */ getenv('__BC_ID__')
Loading history...
18
);
19
20
print_r($resp);
21