Skip to content

Commit 98f7657

Browse files
authored
fix: php 8.1 Optional parameter declared before required parameter
1 parent 6ec4216 commit 98f7657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Api/Contracts/HasPolicies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function authoriseUserAction(string $ability, $arguments = null, bool
101101
*
102102
* @return bool
103103
*/
104-
protected function testUserPolicyAction(string $ability, $arguments = null, bool $excludeMissing): bool
104+
protected function testUserPolicyAction(string $ability, $arguments = null, bool $excludeMissing = false): bool
105105
{
106106
// If no arguments are specified, set it to the controller's model (default)
107107
if ($arguments === null) {

0 commit comments

Comments
 (0)