Skip to content

Commit

Permalink
Tweak gate user
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Oct 29, 2015
1 parent 2e48b23 commit 8a1a99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataCollector/GateCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public function __construct(Gate $gate)
}
}

public function addCheck(Authenticatable $user, $ability, $result = null, $arguments = [])
public function addCheck(Authenticatable $user, $ability, $result, $arguments = [])
{
$label = $result ? 'success' : 'error';

$this->addMessage([
'ability' => $ability,
'result' => $result,
'user' => $user->getAuthIdentifier(),
'arguments' => $arguments,
'user' => $user ? $user->getAuthIdentifier() : null,
], $label, false);
}
}

0 comments on commit 8a1a99c

Please sign in to comment.