Skip to content

Commit

Permalink
ensure that the error code is an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Oct 16, 2011
1 parent 716e104 commit b429734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/Authentication/Provider/FacebookProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function authenticate(TokenInterface $token)
} catch (AuthenticationException $failed) {
throw $failed;
} catch (\Exception $failed) {
throw new AuthenticationException('Unknown error', $failed->getMessage(), $failed->getCode(), $failed);
throw new AuthenticationException('Unknown error', $failed->getMessage(), (int)$failed->getCode(), $failed);
}

throw new AuthenticationException('The Facebook user could not be retrieved from the session.');
Expand Down

0 comments on commit b429734

Please sign in to comment.