Skip to content

Commit f603f86

Browse files
Update User facade to support passing computed fields as arrays
1 parent 99c5506 commit f603f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Facades/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @method static void delete(\Statamic\Contracts\Auth\User $user);
2222
* @method static \Statamic\Fields\Blueprint blueprint();
2323
* @method static \Illuminate\Support\Collection getComputedCallbacks()
24-
* @method static void computed(string $field, \Closure $callback)
24+
* @method static void computed(string|array $field, ?\Closure $callback = null)
2525
*
2626
* @see \Statamic\Contracts\Auth\UserRepository
2727
* @see \Statamic\Auth\User

0 commit comments

Comments
 (0)