1 | <?php declare(strict_types=1); |
||
19 | class ThrowSpecList implements ThrowSpecListInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var ThrowSpecInterface[] |
||
23 | */ |
||
24 | private $specs; |
||
25 | |||
26 | /** |
||
27 | * @param ThrowSpecInterface[] ...$specs |
||
28 | */ |
||
29 | 8 | public function __construct(ThrowSpecInterface ...$specs) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 2 | public function getThrowSpecs(): array |
|
41 | } |
||
42 |
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..