Skip to content

Commit a11760b

Browse files
authored
Remove return type from Ability::execute() (#2)
Allow developers to declare their own return type when extending the Ability class instead of being locked into `mixed`.
1 parent 4f019b7 commit a11760b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Abilities/Ability.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ abstract public function description(): string;
4242
*
4343
* @param array<string, mixed> $input
4444
*/
45-
abstract public function execute(array $input): mixed;
45+
abstract public function execute(array $input);
4646

4747
/**
4848
* Determine whether the current user has permission to execute the ability.

0 commit comments

Comments
 (0)