Skip to content

Commit

Permalink
Relax user type in GateWatcher to match Laravel base framework. (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
CImrie authored Apr 11, 2022
1 parent baf002a commit 6b15fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Watchers/GateWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public function handleGateEvaluated(GateEvaluated $event)
/**
* Record a gate check.
*
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
* @param \Illuminate\Contracts\Auth\Authenticatable|mixed|null $user
* @param string $ability
* @param bool $result
* @param array $arguments
* @return bool
*/
public function recordGateCheck(?Authenticatable $user, $ability, $result, $arguments)
public function recordGateCheck($user, $ability, $result, $arguments)
{
if (! Telescope::isRecording() || $this->shouldIgnore($ability)) {
return;
Expand Down

0 comments on commit 6b15fb1

Please sign in to comment.