Issues (8)

Examples/RegisterDomain.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Subreg - RegisterDomain Example
4
 *
5
 * @author     Vítězslav Dvořák <[email protected]>
6
 * @copyright  (C) 2018 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
$unexistentDomain = strtolower(\Ease\Sand::randomString()).'.cz';
18
19
$nsHosts = array("ns.spoje.net", "ns2.spoje.net");
20
21
print_r($client->registerDomain($unexistentDomain, 'G-000001', 'G-000001',
22
        'G-000001', 'ukulele', $nsHosts));
23
24
25
$response = $client->checkDomain($unexistentDomain);
26
27
var_dump($response);
28