1 | <?php |
||
20 | class AppFactory implements LoggerAwareInterface { |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $connection; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $options; |
||
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 Database $connection |
||
46 | * @param array $options |
||
47 | */ |
||
48 | public function __construct( $connection, array $options = array() ) { |
||
52 | |||
53 | /** |
||
54 | * @see LoggerAwareInterface::setLogger |
||
55 | * |
||
56 | * @since 2.5 |
||
57 | * |
||
58 | * @param LoggerInterface $logger |
||
59 | */ |
||
60 | public function setLogger( LoggerInterface $logger ) { |
||
63 | |||
64 | /** |
||
65 | * @since 3.0 |
||
66 | * |
||
67 | * @param LoggerInterface |
||
68 | */ |
||
69 | public function getLogger() { |
||
77 | |||
78 | /** |
||
79 | * @since 2.4 |
||
80 | * |
||
81 | * @param string $key |
||
82 | * @param $default $mixed |
||
83 | * |
||
84 | * @return mixed|false |
||
85 | */ |
||
86 | public function getOption( $key, $default = false ) { |
||
94 | |||
95 | /** |
||
96 | * @since 2.0 |
||
97 | * |
||
98 | * @return PropertyDefinitions |
||
99 | */ |
||
100 | public function getPropertyDefinitions() { |
||
116 | |||
117 | /** |
||
118 | * @since 1.3 |
||
119 | * |
||
120 | * @return DatabaseBase |
||
121 | */ |
||
122 | public function getConnection() { |
||
125 | |||
126 | /** |
||
127 | * @since 1.3 |
||
128 | * |
||
129 | * @param Title $title |
||
130 | * |
||
131 | * @return WikiPage |
||
132 | */ |
||
133 | public function newWikiPage( Title $title ) { |
||
148 | |||
149 | /** |
||
150 | * @since 1.3 |
||
151 | * |
||
152 | * @param Title $title |
||
153 | * |
||
154 | * @return User |
||
155 | */ |
||
156 | public function newUserFromTitle( Title $title ) { |
||
159 | |||
160 | /** |
||
161 | * @since 1.3 |
||
162 | * |
||
163 | * @param $id |
||
164 | * |
||
165 | * @return User |
||
166 | */ |
||
167 | public function newUserFromID( $id ) { |
||
170 | |||
171 | } |
||
172 |
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..