Skip to content

Commit

Permalink
Merge pull request barryvdh#412 from stephandesouza/patch-1
Browse files Browse the repository at this point in the history
Correct reference to ArrayableInterface
  • Loading branch information
barryvdh committed Nov 6, 2015
2 parents 8a1a99c + 3ebeab0 commit 7b872d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataCollector/AuthCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use DebugBar\DataCollector\DataCollector;
use DebugBar\DataCollector\Renderable;
use Illuminate\Support\Contracts\ArrayableInterface;
use Illuminate\Contracts\Support\Arrayable;

/**
* Collector for Laravel's Auth provider
Expand Down Expand Up @@ -77,7 +77,7 @@ protected function getUserInformation($user = null)

return array(
'name' => $identifier,
'user' => $user instanceof ArrayableInterface ? $user->toArray() : $user,
'user' => $user instanceof Arrayable ? $user->toArray() : $user,
);
}

Expand Down

0 comments on commit 7b872d6

Please sign in to comment.