Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | public function testUpdateUserGetsHandled() |
||
25 | { |
||
26 | $handler = new DeleteUserHandler($this->userRepository); |
||
27 | |||
28 | $deletingUser = $this->userRepository->findByUsername('wouter'); |
||
29 | |||
30 | $command = new DeleteUser($deletingUser); |
||
31 | |||
32 | $handler->handle($command); |
||
33 | |||
34 | $this->assertNotNull($deletingUser); |
||
35 | $this->assertNull( |
||
36 | $this->userRepository->findByUsername('wouter') |
||
37 | ); |
||
38 | } |
||
39 | } |
||
40 |
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..