mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 00:34:03 +00:00
phpstan improvements
This commit is contained in:
parent
87212e5390
commit
d463e2da61
10 changed files with 18 additions and 27 deletions
|
|
@ -15,6 +15,8 @@ trait DealsWithTenantSymlinks
|
|||
* Tenants can have a symlink for each disk registered in the tenancy.filesystem.url_override config.
|
||||
*
|
||||
* This is used for creating all possible tenant symlinks and removing all existing tenant symlinks.
|
||||
*
|
||||
* @return Collection<string, string>
|
||||
*/
|
||||
protected static function possibleTenantSymlinks(Tenant $tenant): Collection
|
||||
{
|
||||
|
|
@ -33,7 +35,7 @@ trait DealsWithTenantSymlinks
|
|||
});
|
||||
}
|
||||
|
||||
return $symlinks->mapWithKeys(fn ($item) => $item);
|
||||
return $symlinks->mapWithKeys(fn ($item) => $item); // [[a => b], [c => d]] -> [a => b, c => d]
|
||||
}
|
||||
|
||||
/** Determine if the provided path is an existing symlink. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue