1 | <?php declare(strict_types=1); |
||
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) |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getRepository(): string |
||
47 | |||
48 | /** |
||
49 | * @return string|null |
||
50 | */ |
||
51 | public function getBaseTree(): ?string |
||
55 | |||
56 | /** |
||
57 | * @return NamedBlob[] |
||
58 | */ |
||
59 | public function getBlobs(): array |
||
63 | } |
||
64 |
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..