1 | <?php |
||
8 | class ToBootstrap3 implements ToHtmlInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var Paginate |
||
12 | */ |
||
13 | private $paginate; |
||
14 | |||
15 | /** |
||
16 | * ToBootstrap3 constructor. |
||
17 | * |
||
18 | * @param Paginate $paginate |
||
19 | */ |
||
20 | public function __construct($paginate) |
||
24 | |||
25 | /** |
||
26 | * @param PaginateInterface $paginate |
||
27 | * @return ToHtmlInterface |
||
28 | */ |
||
29 | public function setPaginate(PaginateInterface $paginate) |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function __toString() |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function toString() |
||
61 | |||
62 | /** |
||
63 | * @param Page $p |
||
64 | * @return string |
||
65 | */ |
||
66 | private function li(Page $p, $label = null) |
||
78 | |||
79 | private function liLabel(Page $p, $label) |
||
87 | } |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.