Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
63 | 1 | public function getIdentity(AccessTokenInterface $accessToken) |
|
64 | { |
||
65 | 1 | $this->consumerToken = $accessToken; |
|
|
|||
66 | |||
67 | $parameters = [ |
||
68 | 1 | 'key' => $this->consumer->getKey(), |
|
69 | 1 | 'token' => $accessToken->getToken() |
|
70 | ]; |
||
71 | |||
72 | 1 | $result = $this->request( |
|
73 | 'GET', |
||
74 | 'members/me', |
||
75 | $parameters |
||
76 | ); |
||
77 | |||
78 | 1 | $hydrator = new ArrayHydrator([ |
|
79 | 'avatarUrl' => 'pictureURL', |
||
80 | 'fullName' => 'fullname', |
||
81 | ]); |
||
82 | |||
83 | 1 | return $hydrator->hydrate(new User(), $result); |
|
84 | } |
||
86 |
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..