1 | <?php |
||
18 | final class Render |
||
19 | { |
||
20 | /** @var Documentation */ |
||
21 | private $documentation; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $target; |
||
25 | |||
26 | /** @var string[] */ |
||
27 | private $templates; |
||
28 | |||
29 | /** |
||
30 | * @param Documentation $documentation |
||
31 | * @param Filesystem $target |
||
32 | * @param string[] $templates array of templates to render. |
||
33 | */ |
||
34 | public function __construct(Documentation $documentation, Filesystem $target, array $templates) |
||
40 | |||
41 | /** |
||
42 | * @return Documentation |
||
43 | */ |
||
44 | public function getDocumentation() |
||
48 | |||
49 | /** |
||
50 | * @return Filesystem |
||
51 | */ |
||
52 | public function getTarget() |
||
56 | |||
57 | /** |
||
58 | * @return string[] |
||
59 | */ |
||
60 | public function getTemplates() |
||
64 | } |
||
65 |
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..