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:
parent
18a16e6a74
commit
4372e1bef2
20 changed files with 105 additions and 16 deletions
|
|
@ -73,6 +73,9 @@ class CloneRoutesAsTenant
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection<int, Route>
|
||||
*/
|
||||
protected function getRoutesToClone(): Collection
|
||||
{
|
||||
$tenantParameterName = PathTenantResolver::tenantParameterName();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue