Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 487e623

Browse files
author
Fosco Marotto
committed
Merge pull request #123 from Ashpants/typehint
Type hinting generates better error messages when an invalid session is ...
2 parents cb61621 + c16a66c commit 487e623

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Facebook/FacebookRedirectLoginHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function getLoginUrl($scope = array(), $version = null)
112112
*
113113
* @return string
114114
*/
115-
public function getLogoutUrl($session, $next)
115+
public function getLogoutUrl(FacebookSession $session, $next)
116116
{
117117
$params = array(
118118
'next' => $next,

src/Facebook/FacebookRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static function getHttpClientHandler()
179179
* @param string|null $etag
180180
*/
181181
public function __construct(
182-
$session, $method, $path, $parameters = null, $version = null, $etag = null
182+
FacebookSession $session, $method, $path, $parameters = null, $version = null, $etag = null
183183
)
184184
{
185185
$this->session = $session;

0 commit comments

Comments
 (0)