Issues (8)

Examples/CheckDomain.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Subreg - Usage 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
18
$unexistentDomain = strtolower(\Ease\Sand::randomString()).'.cz';
19
20
$response = $client->checkDomain($unexistentDomain);
21
22
$existingDomain   = 'spoje.net';
23
24
$response = $client->checkDomain($existingDomain);
25
var_dump($response);
26