These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * This file is part of phpDocumentor. |
||
4 | * |
||
5 | * For the full copyright and license information, please view the LICENSE |
||
6 | * file that was distributed with this source code. |
||
7 | * |
||
8 | * @copyright 2010-2015 Mike van Riel<[email protected]> |
||
9 | * @license http://www.opensource.org/licenses/mit-license.php MIT |
||
10 | * @link http://phpdoc.org |
||
11 | */ |
||
12 | |||
13 | namespace phpDocumentor\DomainModel; |
||
14 | |||
15 | use League\Flysystem\Filesystem; |
||
16 | use phpDocumentor\DomainModel\Parser\Documentation; |
||
17 | |||
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) |
||
35 | { |
||
36 | $this->documentation = $documentation; |
||
37 | $this->target = $target; |
||
0 ignored issues
–
show
|
|||
38 | $this->templates = $templates; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return Documentation |
||
43 | */ |
||
44 | public function getDocumentation() |
||
45 | { |
||
46 | return $this->documentation; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return Filesystem |
||
51 | */ |
||
52 | public function getTarget() |
||
53 | { |
||
54 | return $this->target; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return string[] |
||
59 | */ |
||
60 | public function getTemplates() |
||
61 | { |
||
62 | return $this->templates; |
||
63 | } |
||
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..