Skip to content

Commit

Permalink
Fix catch expression
Browse files Browse the repository at this point in the history
  • Loading branch information
autowp committed Mar 14, 2020
1 parent aa7a11a commit c08f9e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Autowp\ExternalLoginService;

use DateTime;
use Laminas\Json\Json;
use Laminas\Json;
use Locale;

use function count;
Expand Down Expand Up @@ -119,6 +119,9 @@ public function getData(array $options): Result
return new Result($data);
}

/**
* @throws ExternalLoginServiceException
*/
public function getFriends(): array
{
if (! $this->accessToken) {
Expand All @@ -136,7 +139,7 @@ public function getFriends(): array
while (true) {
$response = file_get_contents($url);
try {
$response = Json::decode($response);
$response = Json\Json::decode($response);
} catch (Json\Exception\RuntimeException $e) {
$response = null;
}
Expand Down

0 comments on commit c08f9e2

Please sign in to comment.