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 ( ba3ef4...2d5dc2 )
by Cees-Jan
06:20
created

TreeCommand::getBaseTree()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\CommandBus\Command\Repository;
4
5
use ApiClients\Client\Github\VO\NamedBlob;
6
use WyriHaximus\Tactician\CommandHandler\Annotations\Handler;
7
8
/**
9
 * @Handler("ApiClients\Client\Github\CommandBus\Handler\Repository\TreeHandler")
10
 */
11
final class TreeCommand
12
{
13
    /**
14
     * @var string
15
     */
16
    private $repository;
17
18
    /**
19
     * @var string|null
20
     */
21
    private $baseTree;
22
23
    /**
24
     * @var NamedBlob[]
25
     */
26
    private $blobs;
27
28
    /**
29
     * @param string      $repository
30
     * @param string|null $baseTree
31
     * @param NamedBlob[] $blobs
32
     */
33
    public function __construct(string $repository, ?string $baseTree, NamedBlob ...$blobs)
34
    {
35
        $this->repository = $repository;
36
        $this->baseTree = $baseTree;
37
        $this->blobs = $blobs;
0 ignored issues
show
Documentation Bug introduced by
It seems like $blobs of type array<integer,array<inte...\Github\VO\NamedBlob>>> is incompatible with the declared type array<integer,object<Api...t\Github\VO\NamedBlob>> of property $blobs.

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...
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getRepository(): string
44
    {
45
        return $this->repository;
46
    }
47
48
    /**
49
     * @return string|null
50
     */
51
    public function getBaseTree(): ?string
52
    {
53
        return $this->baseTree;
54
    }
55
56
    /**
57
     * @return NamedBlob[]
58
     */
59
    public function getBlobs(): array
60
    {
61
        return $this->blobs;
62
    }
63
}
64