1 | <?php |
||
16 | class NavigationBuilder |
||
17 | { |
||
18 | /** @var ContainerInterface[] */ |
||
19 | private $container; |
||
20 | /** @var RootNode */ |
||
21 | private $root; |
||
22 | /** @var ItemInterface[] */ |
||
23 | private $stack = []; |
||
24 | /** @var ItemInterface[] */ |
||
25 | private $used = []; |
||
26 | /** @var ItemInterface */ |
||
27 | private $current; |
||
28 | |||
29 | public function __construct(ContainerInterface $container, MatcherInterface $matcher) |
||
34 | |||
35 | /** |
||
36 | * @return ItemInterface[] |
||
37 | * |
||
38 | * @throws NoCurrentItemFoundException |
||
39 | */ |
||
40 | public function getBreadcrumbs(): array |
||
55 | |||
56 | /** |
||
57 | * @param ItemInterface $item |
||
58 | * |
||
59 | * @return bool |
||
60 | * |
||
61 | * @throws NoCurrentItemFoundException |
||
62 | */ |
||
63 | public function isAncestor(ItemInterface $item): bool |
||
70 | |||
71 | /** |
||
72 | * @return ItemInterface |
||
73 | * |
||
74 | * @throws NoCurrentItemFoundException |
||
75 | */ |
||
76 | public function getCurrent(): ItemInterface |
||
84 | |||
85 | public function getRoot(): RootNode |
||
89 | |||
90 | private function build(MatcherInterface $matcher) |
||
107 | |||
108 | private function getParent(NestableInterface $item): ItemInterface |
||
112 | |||
113 | private function getRootItem(ItemInterface $item): ?ItemInterface |
||
123 | |||
124 | private function addItemsFromStack(): void |
||
132 | |||
133 | private function addItem(RootNode $root, ItemInterface $item): void |
||
144 | } |
||
145 |
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..