GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( c53f04...81ef41 )
by Cees-Jan
08:53 queued 06:52
created

Client::conditions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 0
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
crap 2
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\WeatherUnderground;
4
5
use ApiClients\Client\WeatherUnderground\Resource\ConditionInterface;
6
use ApiClients\Client\WeatherUnderground\Resource\UserInterface;
7
use React\EventLoop\Factory;
8
use React\EventLoop\LoopInterface;
9
use function Clue\React\Block\await;
10
11
final class Client
12
{
13
    /**
14
     * @var LoopInterface
15
     */
16
    private $loop;
17
18
    /**
19
     * @var AsyncClient
20
     */
21
    private $client;
22
23
    public function __construct(string $token)
24
    {
25
        $this->loop = Factory::create();
26
        $this->client = AsyncClient::create($this->loop, $token);
0 ignored issues
show
Documentation Bug introduced by
It seems like \ApiClients\Client\Weath...te($this->loop, $token) of type object<self> is incompatible with the declared type object<ApiClients\Client...nderground\AsyncClient> of property $client.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
27
    }
28
29
    public function conditions(string $location): ConditionInterface
30
    {
31
        return await(
32
            $this->client->conditions($location),
33
            $this->loop
34
        );
35
    }
36
}
37