1 | <?php declare(strict_types=1); |
||
10 | final class ReplaceTopicsCommand |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $repository; |
||
16 | |||
17 | /** |
||
18 | * @var string[] |
||
19 | */ |
||
20 | private $topics; |
||
21 | |||
22 | /** |
||
23 | * @param string $repository |
||
24 | * @param string[] $topics |
||
25 | */ |
||
26 | 1 | public function __construct($repository, string ...$topics) |
|
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | 1 | public function getRepository(): string |
|
39 | |||
40 | /** |
||
41 | * @return string[] |
||
42 | */ |
||
43 | 1 | public function getTopics(): array |
|
47 | } |
||
48 |
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..