1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-15 18:54:04 +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

@ -73,6 +73,9 @@ class CloneRoutesAsTenant
return $this;
}
/**
* @return Collection<int, Route>
*/
protected function getRoutesToClone(): Collection
{
$tenantParameterName = PathTenantResolver::tenantParameterName();

View file

@ -16,6 +16,9 @@ class CreateStorageSymlinksAction
{
use DealsWithTenantSymlinks;
/**
* @param Tenant|Collection<covariant int|string, Tenant&\Illuminate\Database\Eloquent\Model>|LazyCollection<covariant int|string, Tenant&\Illuminate\Database\Eloquent\Model> $tenants
*/
public function __invoke(Tenant|Collection|LazyCollection $tenants, bool $relativeLink = false, bool $force = false): void
{
$tenants = $tenants instanceof Tenant ? collect([$tenants]) : $tenants;

View file

@ -15,6 +15,9 @@ class RemoveStorageSymlinksAction
{
use DealsWithTenantSymlinks;
/**
* @param Tenant|Collection<covariant int|string, Tenant&\Illuminate\Database\Eloquent\Model>|LazyCollection<covariant int|string, Tenant&\Illuminate\Database\Eloquent\Model> $tenants
*/
public function __invoke(Tenant|Collection|LazyCollection $tenants): void
{
$tenants = $tenants instanceof Tenant ? collect([$tenants]) : $tenants;