1 | <?php |
||
20 | class AppFactory implements LoggerAwareInterface { |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $options; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $connection; |
||
31 | |||
32 | /** |
||
33 | * @var LoggerInterface |
||
34 | */ |
||
35 | private $logger; |
||
36 | |||
37 | /** |
||
38 | * @var PropertyDefinitions |
||
39 | */ |
||
40 | private $propertyDefinitions; |
||
41 | |||
42 | /** |
||
43 | * @since 2.0 |
||
44 | * |
||
45 | * @param array $options |
||
46 | */ |
||
47 | 9 | public function __construct( array $options = array() ) { |
|
50 | |||
51 | /** |
||
52 | * @since 2.0 |
||
53 | */ |
||
54 | 1 | public function setConnection( \DatabaseBase $connection ) { |
|
57 | |||
58 | /** |
||
59 | * @since 1.3 |
||
60 | * |
||
61 | * @return DatabaseBase |
||
62 | */ |
||
63 | 1 | public function getConnection() { |
|
66 | |||
67 | /** |
||
68 | * @see LoggerAwareInterface::setLogger |
||
69 | * |
||
70 | * @since 2.0 |
||
71 | * |
||
72 | * @param LoggerInterface $logger |
||
73 | */ |
||
74 | public function setLogger( LoggerInterface $logger ) { |
||
77 | |||
78 | /** |
||
79 | * @since 3.0 |
||
80 | * |
||
81 | * @param LoggerInterface |
||
82 | */ |
||
83 | 1 | public function getLogger() { |
|
91 | |||
92 | /** |
||
93 | * @since 2.4 |
||
94 | * |
||
95 | * @param string $key |
||
96 | * @param $default $mixed |
||
97 | * |
||
98 | * @return mixed|false |
||
99 | */ |
||
100 | 2 | public function getOption( $key, $default = false ) { |
|
108 | |||
109 | /** |
||
110 | * @since 2.0 |
||
111 | * |
||
112 | * @return PropertyDefinitions |
||
113 | */ |
||
114 | 1 | public function getPropertyDefinitions() { |
|
130 | |||
131 | /** |
||
132 | * @since 1.3 |
||
133 | * |
||
134 | * @param Title $title |
||
135 | * |
||
136 | * @return WikiPage |
||
137 | */ |
||
138 | 2 | public function newWikiPage( Title $title ) { |
|
153 | |||
154 | /** |
||
155 | * @since 1.3 |
||
156 | * |
||
157 | * @param Title $title |
||
158 | * |
||
159 | * @return User |
||
160 | */ |
||
161 | 1 | public function newUserFromTitle( Title $title ) { |
|
164 | |||
165 | /** |
||
166 | * @since 1.3 |
||
167 | * |
||
168 | * @param $id |
||
169 | * |
||
170 | * @return User |
||
171 | */ |
||
172 | 1 | public function newUserFromID( $id ) { |
|
175 | |||
176 | } |
||
177 |
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..