Skip to content

Commit

Permalink
Fix GateEvaluated event DocBlocks (#36347)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Feb 22, 2021
1 parent ed3a8db commit 75b1e9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Auth/Access/Events/GateEvaluated.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class GateEvaluated
/**
* The authenticatable model.
*
* @var \Illuminate\Contracts\Auth\Authenticatable
* @var \Illuminate\Contracts\Auth\Authenticatable|null
*/
public $user;

Expand Down Expand Up @@ -35,7 +35,7 @@ class GateEvaluated
/**
* Create a new event instance.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
* @param string $ability
* @param bool|null $result
* @param array $arguments
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Gate implements GateContract
*/
public function __construct(Container $container, callable $userResolver, array $abilities = [],
array $policies = [], array $beforeCallbacks = [], array $afterCallbacks = [],
callable $guessPolicyNamesUsingCallback = null)
callable $guessPolicyNamesUsingCallback = null)
{
$this->policies = $policies;
$this->container = $container;
Expand Down Expand Up @@ -525,10 +525,10 @@ protected function callAfterCallbacks($user, $ability, array $arguments, $result
/**
* Dispatch a gate evaluation event.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
* @param string $ability
* @param array $arguments
* @param bool $result
* @param bool|null $result
* @return void
*/
protected function dispatchGateEvaluatedEvent($user, $ability, array $arguments, $result)
Expand Down

0 comments on commit 75b1e9e

Please sign in to comment.