Skip to content

Commit ea43bac

Browse files
Allow ability parameter to accept integer type (#1947)
1 parent d36b189 commit ea43bac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DataCollector/GateCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GateCollector extends MessagesCollector implements Resettable
2020
{
2121
protected array $reflection = [];
2222

23-
public function addCheck(mixed $user, string $ability, mixed $result, array $arguments = []): void
23+
public function addCheck(mixed $user, string|int $ability, mixed $result, array $arguments = []): void
2424
{
2525
$userKey = 'user';
2626
$userId = null;

0 commit comments

Comments
 (0)