1 | <?php |
||
15 | class Yahoo extends AbstractService |
||
16 | { |
||
17 | public function __construct( |
||
18 | CredentialsInterface $credentials, |
||
19 | ClientInterface $httpClient, |
||
20 | TokenStorageInterface $storage, |
||
21 | SignatureInterface $signature, |
||
22 | UriInterface $baseApiUri = null |
||
23 | ) { |
||
24 | parent::__construct($credentials, $httpClient, $storage, $signature, $baseApiUri); |
||
25 | |||
26 | if (null === $baseApiUri) { |
||
27 | $this->baseApiUri = new Uri('https://social.yahooapis.com/v1/'); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | public function getRequestTokenEndpoint() |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getAuthorizationEndpoint() |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function getAccessTokenEndpoint() |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function refreshAccessToken(TokenInterface $token) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | protected function parseAccessTokenResponse($responseBody) |
||
107 | } |
||
108 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.