Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function findResourceOwnerIdWithUsernameAndPassword(string $username, string $password): ?ResourceOwnerId |
||
35 | { |
||
36 | if (!array_key_exists($password, $this->usernameAndPasswords)) { |
||
37 | return null; |
||
38 | } |
||
39 | if ($this->usernameAndPasswords[$password]->getValue() !== $username) { |
||
40 | return null; |
||
41 | } |
||
42 | |||
43 | return $this->usernameAndPasswords[$password]; |
||
44 | } |
||
45 | } |
||
46 |
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..