@@ -214,6 +214,7 @@ discard block |
||
214 | 214 | * Set the HTTP method for this request. |
215 | 215 | * |
216 | 216 | * @param string |
217 | + * @param string|null $method |
|
217 | 218 | * |
218 | 219 | * @return FacebookRequest |
219 | 220 | */ |
@@ -252,6 +253,7 @@ discard block |
||
252 | 253 | * Set the endpoint for this request. |
253 | 254 | * |
254 | 255 | * @param string |
256 | + * @param string|null $endpoint |
|
255 | 257 | * |
256 | 258 | * @return FacebookRequest |
257 | 259 | * |
@@ -156,7 +156,7 @@ |
||
156 | 156 | * @param string $endpoint The endpoint to POST to. |
157 | 157 | * @param array $params The params to send with the request. |
158 | 158 | * |
159 | - * @return array |
|
159 | + * @return FacebookFile |
|
160 | 160 | */ |
161 | 161 | private function sendUploadRequest($endpoint, $params = []) |
162 | 162 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * Remove params from a URL. |
35 | 35 | * |
36 | 36 | * @param string $url The URL to filter. |
37 | - * @param array $paramsToFilter The params to filter from the URL. |
|
37 | + * @param string[] $paramsToFilter The params to filter from the URL. |
|
38 | 38 | * |
39 | 39 | * @return string The URL with the params removed. |
40 | 40 | */ |
@@ -213,7 +213,7 @@ |
||
213 | 213 | /** |
214 | 214 | * Returns the exception that was thrown for this request. |
215 | 215 | * |
216 | - * @return FacebookResponseException|null |
|
216 | + * @return FacebookSDKException |
|
217 | 217 | */ |
218 | 218 | public function getThrownException() |
219 | 219 | { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * Returns the URL to send the user in order to login to Facebook. |
133 | 133 | * |
134 | 134 | * @param string $redirectUrl The URL Facebook should redirect users to after login. |
135 | - * @param array $scope List of permissions to request during login. |
|
135 | + * @param string[] $scope List of permissions to request during login. |
|
136 | 136 | * @param string $separator The separator to use in http_build_query(). |
137 | 137 | * |
138 | 138 | * @return string |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * Returns the URL to send the user in order to log out of Facebook. |
147 | 147 | * |
148 | - * @param AccessToken|string $accessToken The access token that will be logged out. |
|
148 | + * @param string $accessToken The access token that will be logged out. |
|
149 | 149 | * @param string $next The url Facebook should redirect the user to after a successful logout. |
150 | 150 | * @param string $separator The separator to use in http_build_query(). |
151 | 151 | * |
@@ -328,6 +328,9 @@ discard block |
||
328 | 328 | $this->assertEquals($expectedBatchParams, $params); |
329 | 329 | } |
330 | 330 | |
331 | + /** |
|
332 | + * @param string $expectedToken |
|
333 | + */ |
|
331 | 334 | private function assertRequestContainsAppAndToken(FacebookRequest $request, FacebookApp $expectedApp, $expectedToken) |
332 | 335 | { |
333 | 336 | $app = $request->getApp(); |
@@ -347,6 +350,9 @@ discard block |
||
347 | 350 | return $headers; |
348 | 351 | } |
349 | 352 | |
353 | + /** |
|
354 | + * @param integer $number |
|
355 | + */ |
|
350 | 356 | private function createAndAppendRequestsTo(FacebookBatchRequest $batchRequest, $number) |
351 | 357 | { |
352 | 358 | for ($i = 0; $i < $number; $i++) { |
@@ -90,7 +90,7 @@ |
||
90 | 90 | * Returns a property from the signed request data if available. |
91 | 91 | * |
92 | 92 | * @param string $key |
93 | - * @param mixed|null $default |
|
93 | + * @param integer $default |
|
94 | 94 | * |
95 | 95 | * @return mixed|null |
96 | 96 | */ |