1 | <?php |
||
25 | class Extension { |
||
26 | |||
27 | /** |
||
28 | * @since 1.0 |
||
29 | * |
||
30 | * @var Settings |
||
31 | */ |
||
32 | private $settings; |
||
33 | |||
34 | 23 | public function __construct( Settings $settings ) { |
|
37 | |||
38 | /** |
||
39 | * @since 1.0 |
||
40 | * |
||
41 | * @return Settings |
||
42 | */ |
||
43 | 5 | public function getSettings() { |
|
46 | |||
47 | /** |
||
48 | * @since 1.0 |
||
49 | * |
||
50 | * @return DBConnectionProvider |
||
51 | */ |
||
52 | 24 | public function getSlaveConnectionProvider() { |
|
55 | |||
56 | /** |
||
57 | * @since 1.0 |
||
58 | * |
||
59 | * @return CacheInvalidator |
||
60 | */ |
||
61 | 1 | public function getCacheInvalidator() { |
|
64 | |||
65 | /** |
||
66 | * @return SimpleSubPageFinder |
||
67 | */ |
||
68 | 19 | public function getSubPageFinder() { |
|
71 | |||
72 | /** |
||
73 | * @since 1.0 |
||
74 | * |
||
75 | * @return SubPageCounter |
||
76 | */ |
||
77 | 4 | public function getSubPageCounter() { |
|
80 | |||
81 | /** |
||
82 | * @since 1.0 |
||
83 | * |
||
84 | * @return TitleFactory |
||
85 | */ |
||
86 | 22 | public function getTitleFactory() { |
|
89 | |||
90 | /** |
||
91 | * @since 1.0 |
||
92 | * |
||
93 | * @return HookHandler |
||
94 | */ |
||
95 | 4 | public function getCountHookHandler() { |
|
98 | |||
99 | /** |
||
100 | * @since 1.0 |
||
101 | * |
||
102 | * @return HookHandler |
||
103 | */ |
||
104 | 18 | public function getListHookHandler() { |
|
105 | 18 | return new SubPageList( |
|
106 | 18 | $this->getSubPageFinder(), |
|
107 | 18 | $this->getPageHierarchyCreator(), |
|
108 | 18 | $this->newSubPageListRenderer(), |
|
109 | 18 | $this->getTitleFactory() |
|
110 | 18 | ); |
|
111 | } |
||
112 | |||
113 | /** |
||
114 | * @since 1.0 |
||
115 | * |
||
116 | * @return PageHierarchyCreator |
||
117 | */ |
||
118 | 18 | public function getPageHierarchyCreator() { |
|
121 | |||
122 | /** |
||
123 | * @since 1.0 |
||
124 | * |
||
125 | * @return SubPageListRenderer |
||
126 | */ |
||
127 | 18 | public function newSubPageListRenderer() { |
|
130 | |||
131 | /** |
||
132 | * @since 1.0 |
||
133 | * |
||
134 | * @return HookDefinition |
||
135 | */ |
||
136 | 4 | public function getCountHookDefinition() { |
|
149 | |||
150 | /** |
||
151 | * @since 1.0 |
||
152 | * |
||
153 | * @return HookDefinition |
||
154 | */ |
||
155 | 18 | public function getListHookDefinition() { |
|
275 | |||
276 | /** |
||
277 | * @since 0.1 |
||
278 | * |
||
279 | * @param Parser $parser |
||
280 | * |
||
281 | * @return HookRegistrant |
||
282 | */ |
||
283 | public function getHookRegistrant( Parser &$parser ) { |
||
286 | |||
287 | } |
||
288 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: