diff --git a/src/DataCollector/GateCollector.php b/src/DataCollector/GateCollector.php index 5e6ad850..ecc029d8 100644 --- a/src/DataCollector/GateCollector.php +++ b/src/DataCollector/GateCollector.php @@ -5,7 +5,6 @@ use Barryvdh\Debugbar\DataFormatter\SimpleFormatter; use DebugBar\DataCollector\MessagesCollector; use Illuminate\Contracts\Auth\Access\Gate; -use Illuminate\Contracts\Auth\Access\Authorizable; use Illuminate\Contracts\Auth\Authenticatable; use Symfony\Component\VarDumper\Cloner\VarCloner; @@ -24,7 +23,7 @@ public function __construct(Gate $gate) $gate->after([$this, 'addCheck']); } - public function addCheck(Authorizable $user = null, $ability, $result, $arguments = []) + public function addCheck(Authenticatable $user = null, $ability, $result, $arguments = []) { $userKey = 'user'; $userId = null;