Skip to content
This repository has been archived by the owner on Apr 7, 2019. It is now read-only.

Commit

Permalink
Fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jul 30, 2017
1 parent 53dabe7 commit d11fb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoginProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected function buildAuthUrlFromBase(string $url, string $state, array $scope
*/
public function user()
{
$state = $this->request->getSession()->pull('state');
$state = (string) $this->request->getSession()->pull('state');

if (strlen($state) !== 40 || $this->request->input('state') !== $state) {
throw new InvalidStateException('We could not verify the request was genuine.');
Expand Down

0 comments on commit d11fb73

Please sign in to comment.