1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:34:03 +00:00

fix phpstan errors

This commit is contained in:
Samuel Štancl 2024-08-06 04:35:25 +02:00
parent 18a16e6a74
commit 4372e1bef2
20 changed files with 105 additions and 16 deletions

View file

@ -42,6 +42,9 @@ class Link extends Command
return 0;
}
/**
* @param LazyCollection<covariant int|string, \Stancl\Tenancy\Contracts\Tenant&\Illuminate\Database\Eloquent\Model> $tenants
*/
protected function removeLinks(LazyCollection $tenants): void
{
(new RemoveStorageSymlinksAction)($tenants);
@ -49,6 +52,9 @@ class Link extends Command
$this->components->info('The links have been removed.');
}
/**
* @param LazyCollection<covariant int|string, \Stancl\Tenancy\Contracts\Tenant&\Illuminate\Database\Eloquent\Model> $tenants
*/
protected function createLinks(LazyCollection $tenants): void
{
(new CreateStorageSymlinksAction)(