Issues (5)

examples/bc-transfer.php (2 issues)

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->transfer(
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...\Service\Bc::transfer(). ( 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
    getenv('__ADVERTISER_ID__'),
0 ignored issues
show
getenv('__ADVERTISER_ID__') of type string is incompatible with the type integer expected by parameter $advertiserId of Promopult\TikTokMarketin...\Service\Bc::transfer(). ( Ignorable by Annotation )

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

18
    /** @scrutinizer ignore-type */ getenv('__ADVERTISER_ID__'),
Loading history...
19
    'RECHARGE',
20
    1.00
21
);
22
23
print_r($resp);
24