Seeing this example: ``` $users = type($users)->as(Collection::class); ``` Really wants me to append an `->of(User::class)` to make sure a `Collection<User>` is returned. This could be also be used for arrays: `type($users)->asArray()->of(User::class)`
Seeing this example:
Really wants me to append an
->of(User::class)to make sure aCollection<User>is returned.This could be also be used for arrays:
type($users)->asArray()->of(User::class)