1 | <?php |
||
15 | class Db extends AbstractAdapter |
||
16 | { |
||
17 | /** |
||
18 | * @var UserMapperInterface |
||
19 | */ |
||
20 | protected $mapper; |
||
21 | |||
22 | /** |
||
23 | * @var callable |
||
24 | */ |
||
25 | protected $credentialPreprocessor; |
||
26 | |||
27 | /** |
||
28 | * @var ServiceManager |
||
29 | */ |
||
30 | protected $serviceManager; |
||
31 | |||
32 | /** |
||
33 | * @var ModuleOptions |
||
34 | */ |
||
35 | protected $options; |
||
36 | |||
37 | /** |
||
38 | * Called when user id logged out |
||
39 | * @param EventInterface $e |
||
40 | */ |
||
41 | public function logout(EventInterface $e) |
||
45 | |||
46 | /** |
||
47 | * @param EventInterface $e |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function authenticate(EventInterface $e) |
||
123 | |||
124 | protected function updateUserPasswordHash(UserInterface $userObject, $password, Bcrypt $bcrypt) |
||
134 | |||
135 | public function preProcessCredential($credential) |
||
144 | |||
145 | /** |
||
146 | * getMapper |
||
147 | * |
||
148 | * @return UserMapperInterface |
||
149 | */ |
||
150 | public function getMapper() |
||
158 | |||
159 | /** |
||
160 | * setMapper |
||
161 | * |
||
162 | * @param UserMapperInterface $mapper |
||
163 | * @return Db |
||
164 | */ |
||
165 | public function setMapper(UserMapperInterface $mapper) |
||
171 | |||
172 | /** |
||
173 | * Get credentialPreprocessor. |
||
174 | * |
||
175 | * @return callable |
||
176 | */ |
||
177 | public function getCredentialPreprocessor() |
||
181 | |||
182 | /** |
||
183 | * Set credentialPreprocessor. |
||
184 | * |
||
185 | * @param callable $credentialPreprocessor |
||
186 | * @return $this |
||
187 | */ |
||
188 | public function setCredentialPreprocessor($credentialPreprocessor) |
||
193 | |||
194 | /** |
||
195 | * Retrieve service manager instance |
||
196 | * |
||
197 | * @return ServiceManager |
||
198 | */ |
||
199 | public function getServiceManager() |
||
203 | |||
204 | /** |
||
205 | * Set service manager instance |
||
206 | * |
||
207 | * @param ContainerInterface $serviceManager |
||
208 | */ |
||
209 | public function setServiceManager(ContainerInterface $serviceManager) |
||
213 | |||
214 | /** |
||
215 | * @param ModuleOptions $options |
||
216 | */ |
||
217 | public function setOptions(ModuleOptions $options) |
||
221 | |||
222 | /** |
||
223 | * @return ModuleOptions |
||
224 | */ |
||
225 | public function getOptions() |
||
233 | } |
||
234 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.