Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | public function testUpdateUserGetsHandled() |
||
32 | { |
||
33 | $handler = new DeleteUserHandler($this->userRepositoryCollection); |
||
34 | |||
35 | $deletingUser = $this->userRepository->findByUsername('wouter'); |
||
36 | |||
37 | $command = new DeleteUser($deletingUser); |
||
38 | |||
39 | $handler->handle($command); |
||
40 | |||
41 | $this->assertNotNull($deletingUser); |
||
42 | $this->assertNull( |
||
43 | $this->userRepository->findByUsername('wouter') |
||
44 | ); |
||
45 | } |
||
46 | } |
||
47 |
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..