Issues (8)

Examples/GetPriceList.php (2 issues)

1
<?php
2
/**
3
 * Subreg - RegisterDomain Example
4
 *
5
 * @author     Vítězslav Dvořák <[email protected]>
6
 * @copyright  (C) 2019 Spoje.Net
7
 */
8
9
namespace Subreg;
10
11
require_once '../vendor/autoload.php';
12
13
\Ease\Shared::instanced()->loadConfig('../tests/config.json');
14
15
$client = new Client(\Ease\Shared::instanced()->configuration);
0 ignored issues
show
Ease\Shared::instanced()->configuration of type array is incompatible with the type Subreg\type expected by parameter $config of Subreg\Client::__construct(). ( Ignorable by Annotation )

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

15
$client = new Client(/** @scrutinizer ignore-type */ \Ease\Shared::instanced()->configuration);
Loading history...
16
17
18
print_r($client->pricelist('KONCOVA'));
0 ignored issues
show
The call to Subreg\Client::pricelist() has too many arguments starting with 'KONCOVA'. ( Ignorable by Annotation )

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

18
print_r($client->/** @scrutinizer ignore-call */ pricelist('KONCOVA'));

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.

Loading history...
19
20
//print_r($client->pricelist());
21
22