1 | <?php |
||
22 | class AppFactory implements LoggerAwareInterface { |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | private $connection; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private $options; |
||
33 | |||
34 | /** |
||
35 | * @var LoggerInterface |
||
36 | */ |
||
37 | private $logger; |
||
38 | |||
39 | /** |
||
40 | * @var PropertyDefinitions |
||
41 | */ |
||
42 | private $propertyDefinitions; |
||
43 | |||
44 | /** |
||
45 | * @since 2.0 |
||
46 | * |
||
47 | * @param Database $connection |
||
48 | * @param array $options |
||
49 | */ |
||
50 | public function __construct( $connection, array $options = array() ) { |
||
55 | |||
56 | /** |
||
57 | * @see LoggerAwareInterface::setLogger |
||
58 | * |
||
59 | * @since 2.5 |
||
60 | * |
||
61 | * @param LoggerInterface $logger |
||
62 | */ |
||
63 | public function setLogger( LoggerInterface $logger ) { |
||
66 | |||
67 | /** |
||
68 | * @since 3.0 |
||
69 | * |
||
70 | * @param LoggerInterface |
||
71 | */ |
||
72 | public function getLogger() { |
||
75 | |||
76 | /** |
||
77 | * @since 2.4 |
||
78 | * |
||
79 | * @param string $key |
||
80 | * @param $default $mixed |
||
81 | * |
||
82 | * @return mixed|false |
||
83 | */ |
||
84 | public function getOption( $key, $default = false ) { |
||
92 | |||
93 | /** |
||
94 | * @since 2.0 |
||
95 | * |
||
96 | * @return PropertyDefinitions |
||
97 | */ |
||
98 | public function getPropertyDefinitions() { |
||
114 | |||
115 | /** |
||
116 | * @since 1.3 |
||
117 | * |
||
118 | * @return DatabaseBase |
||
119 | */ |
||
120 | public function getConnection() { |
||
123 | |||
124 | /** |
||
125 | * @since 1.3 |
||
126 | * |
||
127 | * @param Title $title |
||
128 | * |
||
129 | * @return WikiPage |
||
130 | */ |
||
131 | public function newWikiPage( Title $title ) { |
||
146 | |||
147 | /** |
||
148 | * @since 1.3 |
||
149 | * |
||
150 | * @param Title $title |
||
151 | * |
||
152 | * @return User |
||
153 | */ |
||
154 | public function newUserFromTitle( Title $title ) { |
||
157 | |||
158 | /** |
||
159 | * @since 1.3 |
||
160 | * |
||
161 | * @param $id |
||
162 | * |
||
163 | * @return User |
||
164 | */ |
||
165 | public function newUserFromID( $id ) { |
||
168 | |||
169 | } |
||
170 |
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..